From 863f64dcbda6f4099b45a5fa52cff3435cf1dc02 Mon Sep 17 00:00:00 2001 From: zhangxingxia Date: Mon, 30 May 2022 16:00:29 +0800 Subject: [PATCH] update fileio xts Signed-off-by: zhangxingxia --- .../js/default/test/module_fileio/class_stream/close.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 17e42227e..47a5caea9 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 @@ -55,7 +55,7 @@ describe('fileio_stream_close', function () { * @tc.require */ it('fileio_test_stream_close_sync_001', 0, async function () { - let fpath = await nextFileName('fileio_test_stream_close_sync_000'); + let fpath = await nextFileName('fileio_test_stream_close_sync_001'); expect(prepareFile(fpath, FILE_CONTENT)).assertTrue(); try { let fd = fileio.openSync(fpath, 0o2); @@ -64,6 +64,7 @@ describe('fileio_stream_close', function () { ss.closeSync(1); } catch (err) { console.info('fileio_test_stream_close_sync_001 has failed for ' + err); + expect(err.message == "Number of arguments unmatched").assertTrue(); fileio.unlinkSync(fpath); } }) -- GitLab