提交 f2e44e64 编写于 作者: C chenkai008

修改测试用例

Signed-off-by: Nchenkai008 <chenkai154@huawei.com>
上级 35b40b6a
......@@ -81,7 +81,6 @@ describe('fileio_stream', function () {
let fd = await fileio.openSync(fpath, 0o2);
let ss = await fileio.fdopenStreamSync(fd, 'r+');
expect(ss !== null).assertTrue();
expect(fileio.closeSync(fd) == null).assertTrue();
expect(ss.closeSync() == null).assertTrue();
expect(fileio.unlinkSync(fpath) == null).assertTrue();
done();
......@@ -108,7 +107,6 @@ describe('fileio_stream', function () {
let fd = await fileio.openSync(fpath, 0o2);
let ss = await fileio.fdopenStreamSync(fd, 'r+');
expect(ss !== null).assertTrue();
expect(fileio.closeSync(fd) == null).assertTrue();
ss.close(function (err, stream) {
expect(fileio.unlinkSync(fpath) == null).assertTrue();
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册