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

Remove read operation on write-file-handle

Signed-off-by: Nzhang-daiyue <zhangdaiyue1@huawei.com>
Change-Id: I3ae8e72df1fb0fe12dc12f2f8307b1f7bb2ea144
上级 230853eb
...@@ -160,13 +160,6 @@ export default function fileAssetTestCallbackTest(abilityContext) { ...@@ -160,13 +160,6 @@ export default function fileAssetTestCallbackTest(abilityContext) {
let write = await fileio.write(fd, buf); let write = await fileio.write(fd, buf);
console.info(`${testNum} :: write: ${write}`); console.info(`${testNum} :: write: ${write}`);
expect(write).assertEqual(assetProps.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(); fetchFileResult.close();
done(); done();
}); });
......
...@@ -137,13 +137,6 @@ export default function fileAssetTestPromiseTest(abilityContext) { ...@@ -137,13 +137,6 @@ export default function fileAssetTestPromiseTest(abilityContext) {
let write = await fileio.write(fd, buf); let write = await fileio.write(fd, buf);
console.info(`${testNum} :: write: ${write}`); console.info(`${testNum} :: write: ${write}`);
expect(write).assertEqual(assetProps.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(); fetchFileResult.close();
done(); done();
} catch (error) { } catch (error) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册