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

!7317 Remove read operation on write-file-handle

Merge pull request !7317 from 张代曰/rw
......@@ -160,13 +160,6 @@ export default function fileAssetTestCallbackTest(abilityContext) {
let write = await fileio.write(fd, buf);
console.info(`${testNum} :: write: ${write}`);
expect(write).assertEqual(assetProps.write);
let buf1 = new ArrayBuffer(4096);
try {
await fileio.read(fd, buf1);
expect().assertFail();
} catch (error) {
expect(true).assertTrue();
}
fetchFileResult.close();
done();
});
......
......@@ -137,13 +137,6 @@ export default function fileAssetTestPromiseTest(abilityContext) {
let write = await fileio.write(fd, buf);
console.info(`${testNum} :: write: ${write}`);
expect(write).assertEqual(assetProps.write);
let buf1 = new ArrayBuffer(4096);
try {
await fileio.read(fd, buf1);
expect().assertFail();
} catch (error) {
expect(true).assertTrue();
}
fetchFileResult.close();
done();
} catch (error) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册