提交 0d5fe9a4 编写于 作者: taohebin@dcloud.io's avatar taohebin@dcloud.io

update: 增加网络相关测试的时间

上级 4f67df4e
...@@ -8,7 +8,7 @@ describe('ExtApi-DownloadFile', () => { ...@@ -8,7 +8,7 @@ describe('ExtApi-DownloadFile', () => {
page = await program.reLaunch(PAGE_PATH) page = await program.reLaunch(PAGE_PATH)
await page.waitFor(600); await page.waitFor(600);
await page.callMethod('jest_downloadFile'); await page.callMethod('jest_downloadFile');
await page.waitFor(500); await page.waitFor(1000);
res = await page.data('jest_result'); res = await page.data('jest_result');
}); });
......
...@@ -22,7 +22,7 @@ async function request(page, method, header, data, url) { ...@@ -22,7 +22,7 @@ async function request(page, method, header, data, url) {
header: header header: header
}) })
res = await page.callMethod('jest_request') res = await page.callMethod('jest_request')
await page.waitFor(200); await page.waitFor(500);
res = await page.data('jest_result'); res = await page.data('jest_result');
expect(res).toBe(true) expect(res).toBe(true)
} }
......
...@@ -8,7 +8,7 @@ describe('ExtApi-UploadFile', () => { ...@@ -8,7 +8,7 @@ describe('ExtApi-UploadFile', () => {
page = await program.reLaunch(PAGE_PATH) page = await program.reLaunch(PAGE_PATH)
await page.waitFor(600); await page.waitFor(600);
await page.callMethod('jest_uploadFile'); await page.callMethod('jest_uploadFile');
await page.waitFor(500); await page.waitFor(1000);
res = await page.data('jest_result'); res = await page.data('jest_result');
}); });
......
...@@ -8,7 +8,7 @@ describe('ExtApi-WebSocket', () => { ...@@ -8,7 +8,7 @@ describe('ExtApi-WebSocket', () => {
page = await program.reLaunch(PAGE_PATH) page = await program.reLaunch(PAGE_PATH)
await page.waitFor(600); await page.waitFor(600);
await page.callMethod('jest_connectSocket'); await page.callMethod('jest_connectSocket');
await page.waitFor(500); await page.waitFor(1500);
res = await page.data('jest_result'); res = await page.data('jest_result');
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册