From d9888ec6a2253c4d9e521abd921d14ee0c7bb9f7 Mon Sep 17 00:00:00 2001 From: chenkai008 Date: Fri, 11 Mar 2022 10:41:25 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20f2e44e6=20from=20https://gitee.com/chen?= =?UTF-8?q?kai008/xts=5Facts/pulls/2399=20=E4=BF=AE=E6=94=B9=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chenkai008 --- .../js/default/test/module_fileio/class_stream/close.test.js | 2 -- 1 file changed, 2 deletions(-) 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 9c7fe1918..3e4f95733 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(); }) -- GitLab