diff --git a/storage/storagefileiojstest/src/main/js/default/test/module_fileio/class_stream/close.test.js b/storage/storagefileiojstest/src/main/js/default/test/module_fileio/class_stream/close.test.js index 9c7fe1918e08b9d45f7638f9532d862ceb0bff10..3e4f957331e70cbece87f3c0ec87769001a0dd77 100644 --- a/storage/storagefileiojstest/src/main/js/default/test/module_fileio/class_stream/close.test.js +++ b/storage/storagefileiojstest/src/main/js/default/test/module_fileio/class_stream/close.test.js @@ -81,7 +81,6 @@ describe('fileio_stream', function () { let fd = await fileio.openSync(fpath, 0o2); let ss = await fileio.fdopenStreamSync(fd, 'r+'); expect(ss !== null).assertTrue(); - expect(fileio.closeSync(fd) == null).assertTrue(); expect(ss.closeSync() == null).assertTrue(); expect(fileio.unlinkSync(fpath) == null).assertTrue(); done(); @@ -108,7 +107,6 @@ describe('fileio_stream', function () { let fd = await fileio.openSync(fpath, 0o2); let ss = await fileio.fdopenStreamSync(fd, 'r+'); expect(ss !== null).assertTrue(); - expect(fileio.closeSync(fd) == null).assertTrue(); ss.close(function (err, stream) { expect(fileio.unlinkSync(fpath) == null).assertTrue(); })