提交 2382740d 编写于 作者: R raoxian

update fileio xts

Signed-off-by: Nraoxian <raoxian@huawei.com>
上级 53dacae3
...@@ -66,10 +66,9 @@ describe('fileio_dir_close_read', function () { ...@@ -66,10 +66,9 @@ describe('fileio_dir_close_read', function () {
let dd = await fileio.opendir(dpath); let dd = await fileio.opendir(dpath);
expect(dd !== null).assertTrue(); expect(dd !== null).assertTrue();
dd.close(function (err) { dd.close(function (err) {
expect(!!err).assertTrue(); expect(fileio.rmdirSync(dpath) == null).assertTrue();
done();
}); });
expect(fileio.rmdirSync(dpath) == null).assertTrue();
done();
} catch (e) { } catch (e) {
console.log('fileio_test_dir_close_async_001 has failed for ' + e); console.log('fileio_test_dir_close_async_001 has failed for ' + e);
expect(null).assertFail(); expect(null).assertFail();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册