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

!9669 【杂散】【上传下载】优化request Callback时序问题

Merge pull request !9669 from 张育帅/master
...@@ -569,7 +569,7 @@ export default function requestUploadOnetJSUnitTest() { ...@@ -569,7 +569,7 @@ export default function requestUploadOnetJSUnitTest() {
arr.push(2); arr.push(2);
}); });
await task.start(); await task.start();
await sleep(10); await sleep(20);
console.info("====>SUB_Misc_REQUEST_On_Upload_Progress_0030 task progress on arr: " + JSON.stringify(arr)); console.info("====>SUB_Misc_REQUEST_On_Upload_Progress_0030 task progress on arr: " + JSON.stringify(arr));
task.off('progress'); task.off('progress');
expect(arr.join()).assertEqual(arr1.join()); expect(arr.join()).assertEqual(arr1.join());
...@@ -1115,7 +1115,7 @@ export default function requestUploadOnetJSUnitTest() { ...@@ -1115,7 +1115,7 @@ export default function requestUploadOnetJSUnitTest() {
arr.push(2); arr.push(2);
}); });
await task.start(); await task.start();
await sleep(10); await sleep(20);
task.off('failed'); task.off('failed');
console.info("====>SUB_Misc_REQUEST_On_Upload_Failed_0030 task progress on arr: " + JSON.stringify(arr)); console.info("====>SUB_Misc_REQUEST_On_Upload_Failed_0030 task progress on arr: " + JSON.stringify(arr));
expect(arr.join()).assertEqual(arr1.join()); expect(arr.join()).assertEqual(arr1.join());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册