From 82d90de466dd9a1b0bf199a51a22863b33e281d9 Mon Sep 17 00:00:00 2001 From: y30045862 Date: Wed, 7 Jun 2023 17:55:53 +0800 Subject: [PATCH] =?UTF-8?q?fixed=2067e8634=20from=20https://gitee.com/zhuh?= =?UTF-8?q?ongtao66/xts=5Facts/pulls/8945=20fileIov9=E7=9B=B8=E5=90=8C?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E5=90=8D=E7=A7=B0=E4=BF=AE=E6=94=B9=20Signed?= =?UTF-8?q?-off-by:=20yangjingbo10=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I32c980336a42aabf8df6954897fd3759633f358e --- .../src/main/js/test/class_stream/flush.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/storage/storagefileiov9jstest/src/main/js/test/class_stream/flush.test.js b/storage/storagefileiov9jstest/src/main/js/test/class_stream/flush.test.js index 701a24f04..da010c79b 100644 --- a/storage/storagefileiov9jstest/src/main/js/test/class_stream/flush.test.js +++ b/storage/storagefileiov9jstest/src/main/js/test/class_stream/flush.test.js @@ -141,7 +141,7 @@ describe('fileIO_fs_stream_flush', function () { /** * @tc.number SUB_DF_FILEIO_STREAM_FLUSH_ASYNC_0100 - * @tc.name fileIO_test_stream_flush_async_001 + * @tc.name fileIO_test_stream_flush_async_002 * @tc.desc Test the flush() interface of class Stream. Promise. * Refresh the file stream. * @tc.size MEDIUM @@ -150,8 +150,8 @@ describe('fileIO_fs_stream_flush', function () { * @tc.require */ - it('fileIO_test_stream_flush_sync_001', 0, async function (done) { - let fpath = await nextFileName('fileIO_test_stream_flush_sync_001'); + it('fileIO_test_stream_flush_async_002', 0, async function (done) { + let fpath = await nextFileName('fileIO_test_stream_flush_async_002'); expect(prepareFile(fpath, FILE_CONTENT)).assertTrue(); let sr = fileIO.createStreamSync(fpath, 'r+'); @@ -162,7 +162,7 @@ describe('fileIO_fs_stream_flush', function () { } catch (e) { sr.closeSync(); fileIO.unlinkSync(fpath); - console.log('fileIO_test_stream_flush_sync_001 has failed for ' + e.message + ', code: ' + e.code); + console.log('fileIO_test_stream_flush_async_002 has failed for ' + e.message + ', code: ' + e.code); expect(e.code == 13900020 && e.message == 'Invalid argument').assertTrue(); done(); } -- GitLab