提交 2b5306f7 编写于 作者: Z zhangyushuai 提交者: 张育帅

fixed 7dc7709b from https://gitee.com/yu-shuai-zhang/xts_acts_master_001/pulls/9669

优化request Callback时序问题 001
Signed-off-by: Nzhangyushuai <zhangyushuai1@huawei.com>
上级 329597d4
...@@ -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.
先完成此消息的编辑!
想要评论请 注册