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

!2999 修改测试用例#I53CXA

Merge pull request !2999 from chenkai008/master
......@@ -129,7 +129,7 @@ describe('fileio_copyfile', function () {
done();
});
} catch (e) {
console.log('fileio_copy_file_async_000 has failed for ' + e);
console.log('fileio_copy_file_async_001 has failed for ' + e);
expect(null).assertFail();
}
});
......@@ -150,6 +150,7 @@ describe('fileio_copyfile', function () {
expect(await fileio.copyFile(fpath, fpathTarget).indexOf('<pending>') > -1).assertTrue();
expect(null).assertFail();
} catch (e) {
console.log('fileio_copy_file_async_002 has failed for ' + e);
done();
}
});
......@@ -169,14 +170,11 @@ describe('fileio_copyfile', function () {
fileio
.copyFile(1, fpath)
.then(function (err) {
})
.catch(function (e) {
expect(!!e).assertTrue();
done();
});
})
} catch (e) {
expect(!!e).assertTrue();
done();
console.log('fileio_copy_file_async_003 has failed for ' + e);
expect(null).assertFail();
}
});
......@@ -198,6 +196,7 @@ describe('fileio_copyfile', function () {
expect(null).assertFail();
done();
} catch (e) {
console.log('fileio_copy_file_async_004 has failed for ' + e);
done();
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册