提交 82d90de4 编写于 作者: Y y30045862 提交者: zhuhongtao666

fixed 67e86348 from https://gitee.com/zhuhongtao66/xts_acts/pulls/8945

fileIov9相同用例名称修改
Signed-off-by: Nyangjingbo10 <yangjingbo10@huawei.com>

Change-Id: I32c980336a42aabf8df6954897fd3759633f358e
上级 aa954b46
...@@ -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.
先完成此消息的编辑!
想要评论请 注册