提交 d9888ec6 编写于 作者: C chenkai008
上级 ccf0e41b
...@@ -81,7 +81,6 @@ describe('fileio_stream', function () { ...@@ -81,7 +81,6 @@ describe('fileio_stream', function () {
let fd = await fileio.openSync(fpath, 0o2); let fd = await fileio.openSync(fpath, 0o2);
let ss = await fileio.fdopenStreamSync(fd, 'r+'); let ss = await fileio.fdopenStreamSync(fd, 'r+');
expect(ss !== null).assertTrue(); expect(ss !== null).assertTrue();
expect(fileio.closeSync(fd) == null).assertTrue();
expect(ss.closeSync() == null).assertTrue(); expect(ss.closeSync() == null).assertTrue();
expect(fileio.unlinkSync(fpath) == null).assertTrue(); expect(fileio.unlinkSync(fpath) == null).assertTrue();
done(); done();
...@@ -108,7 +107,6 @@ describe('fileio_stream', function () { ...@@ -108,7 +107,6 @@ describe('fileio_stream', function () {
let fd = await fileio.openSync(fpath, 0o2); let fd = await fileio.openSync(fpath, 0o2);
let ss = await fileio.fdopenStreamSync(fd, 'r+'); let ss = await fileio.fdopenStreamSync(fd, 'r+');
expect(ss !== null).assertTrue(); expect(ss !== null).assertTrue();
expect(fileio.closeSync(fd) == null).assertTrue();
ss.close(function (err, stream) { ss.close(function (err, stream) {
expect(fileio.unlinkSync(fpath) == null).assertTrue(); expect(fileio.unlinkSync(fpath) == null).assertTrue();
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册