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

!3529 fileio xts 语法错误修改

Merge pull request !3529 from zhangxingxia/master
...@@ -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.
先完成此消息的编辑!
想要评论请 注册