diff --git a/multimedia/medialibrary/mediaLibrary_fileAsset/entry/src/main/ets/test/fileAssetTestCallback.test.ets b/multimedia/medialibrary/mediaLibrary_fileAsset/entry/src/main/ets/test/fileAssetTestCallback.test.ets index 2684596fa7b9fc5ed1e460a316dd11b1a0c531a8..ea932250034aaeb70925f96b931c45f181f4422c 100644 --- a/multimedia/medialibrary/mediaLibrary_fileAsset/entry/src/main/ets/test/fileAssetTestCallback.test.ets +++ b/multimedia/medialibrary/mediaLibrary_fileAsset/entry/src/main/ets/test/fileAssetTestCallback.test.ets @@ -160,13 +160,6 @@ export default function fileAssetTestCallbackTest(abilityContext) { let write = await fileio.write(fd, buf); console.info(`${testNum} :: write: ${write}`); expect(write).assertEqual(assetProps.write); - let buf1 = new ArrayBuffer(4096); - try { - await fileio.read(fd, buf1); - expect().assertFail(); - } catch (error) { - expect(true).assertTrue(); - } fetchFileResult.close(); done(); }); diff --git a/multimedia/medialibrary/mediaLibrary_fileAsset/entry/src/main/ets/test/fileAssetTestPromise.test.ets b/multimedia/medialibrary/mediaLibrary_fileAsset/entry/src/main/ets/test/fileAssetTestPromise.test.ets index e3f50b8b590f134e17b011017f798757e9591c16..598ca5f69495dfd96494614b30356c32f36ac511 100644 --- a/multimedia/medialibrary/mediaLibrary_fileAsset/entry/src/main/ets/test/fileAssetTestPromise.test.ets +++ b/multimedia/medialibrary/mediaLibrary_fileAsset/entry/src/main/ets/test/fileAssetTestPromise.test.ets @@ -137,13 +137,6 @@ export default function fileAssetTestPromiseTest(abilityContext) { let write = await fileio.write(fd, buf); console.info(`${testNum} :: write: ${write}`); expect(write).assertEqual(assetProps.write); - let buf1 = new ArrayBuffer(4096); - try { - await fileio.read(fd, buf1); - expect().assertFail(); - } catch (error) { - expect(true).assertTrue(); - } fetchFileResult.close(); done(); } catch (error) {