提交 7dc7709b 编写于 作者: Z zhangyushuai

优化request Callback时序问题 001

Signed-off-by: Nzhangyushuai <zhangyushuai1@huawei.com>
上级 5693118f
......@@ -569,7 +569,7 @@ export default function requestUploadOnetJSUnitTest() {
arr.push(2);
});
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));
task.off('progress');
expect(arr.join()).assertEqual(arr1.join());
......@@ -1115,7 +1115,7 @@ export default function requestUploadOnetJSUnitTest() {
arr.push(2);
});
await task.start();
await sleep(10);
await sleep(20);
task.off('failed');
console.info("====>SUB_Misc_REQUEST_On_Upload_Failed_0030 task progress on arr: " + JSON.stringify(arr));
expect(arr.join()).assertEqual(arr1.join());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册