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

!3535 fileio xts 语法错误修改

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