提交 3a82a539 编写于 作者: Z zhang-daiyue

Remove read operation on write-file-handle

Signed-off-by: Nzhang-daiyue <zhangdaiyue1@huawei.com>
Change-Id: I5a7c4e16e749c56d3b93bb390bba6951ad76a5d7
上级 7627f2c3
......@@ -154,13 +154,7 @@ 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();
});
} catch (error) {
......
......@@ -134,13 +134,7 @@ 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) {
console.info(`${testNum} :: error: ${error}`);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册