未验证 提交 74222612 编写于 作者: O openharmony_ci 提交者: Gitee

!8958 【回合3.2】fileiov9重复用例名修改

Merge pull request !8958 from zhuhongtao666/cherry-pick-1686224198
...@@ -141,7 +141,7 @@ describe('fileIO_fs_stream_flush', function () { ...@@ -141,7 +141,7 @@ describe('fileIO_fs_stream_flush', function () {
/** /**
* @tc.number SUB_DF_FILEIO_STREAM_FLUSH_ASYNC_0100 * @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. * @tc.desc Test the flush() interface of class Stream. Promise.
* Refresh the file stream. * Refresh the file stream.
* @tc.size MEDIUM * @tc.size MEDIUM
...@@ -150,8 +150,8 @@ describe('fileIO_fs_stream_flush', function () { ...@@ -150,8 +150,8 @@ describe('fileIO_fs_stream_flush', function () {
* @tc.require * @tc.require
*/ */
it('fileIO_test_stream_flush_sync_001', 0, async function (done) { it('fileIO_test_stream_flush_async_002', 0, async function (done) {
let fpath = await nextFileName('fileIO_test_stream_flush_sync_001'); let fpath = await nextFileName('fileIO_test_stream_flush_async_002');
expect(prepareFile(fpath, FILE_CONTENT)).assertTrue(); expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
let sr = fileIO.createStreamSync(fpath, 'r+'); let sr = fileIO.createStreamSync(fpath, 'r+');
...@@ -162,7 +162,7 @@ describe('fileIO_fs_stream_flush', function () { ...@@ -162,7 +162,7 @@ describe('fileIO_fs_stream_flush', function () {
} catch (e) { } catch (e) {
sr.closeSync(); sr.closeSync();
fileIO.unlinkSync(fpath); 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(); expect(e.code == 13900020 && e.message == 'Invalid argument').assertTrue();
done(); done();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册