From 67e863485d5cba959aa1d4e32492015f9ee1443c Mon Sep 17 00:00:00 2001 From: y30045862 Date: Wed, 7 Jun 2023 17:55:53 +0800 Subject: [PATCH] =?UTF-8?q?fileIov9=E7=9B=B8=E5=90=8C=E7=94=A8=E4=BE=8B?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E4=BF=AE=E6=94=B9=20Signed-off-by:=20yangjin?= =?UTF-8?q?gbo10=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