From 0d5fe9a4beccd605af1f96a90cfad10a600f8963 Mon Sep 17 00:00:00 2001 From: taohebin Date: Thu, 14 Dec 2023 12:01:29 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E5=A2=9E=E5=8A=A0=E7=BD=91=E7=BB=9C?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=B5=8B=E8=AF=95=E7=9A=84=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/download-file/download-file.test.js | 2 +- pages/API/request/request.test.js | 2 +- pages/API/upload-file/upload-file.test.js | 2 +- pages/API/websocket-socketTask/websocket-socketTask.test.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/API/download-file/download-file.test.js b/pages/API/download-file/download-file.test.js index 9b41ee42..3f15f275 100644 --- a/pages/API/download-file/download-file.test.js +++ b/pages/API/download-file/download-file.test.js @@ -8,7 +8,7 @@ describe('ExtApi-DownloadFile', () => { page = await program.reLaunch(PAGE_PATH) await page.waitFor(600); await page.callMethod('jest_downloadFile'); - await page.waitFor(500); + await page.waitFor(1000); res = await page.data('jest_result'); }); diff --git a/pages/API/request/request.test.js b/pages/API/request/request.test.js index 58555dcb..db18e65c 100644 --- a/pages/API/request/request.test.js +++ b/pages/API/request/request.test.js @@ -22,7 +22,7 @@ async function request(page, method, header, data, url) { header: header }) res = await page.callMethod('jest_request') - await page.waitFor(200); + await page.waitFor(500); res = await page.data('jest_result'); expect(res).toBe(true) } diff --git a/pages/API/upload-file/upload-file.test.js b/pages/API/upload-file/upload-file.test.js index b02e2bc1..56f73f06 100644 --- a/pages/API/upload-file/upload-file.test.js +++ b/pages/API/upload-file/upload-file.test.js @@ -8,7 +8,7 @@ describe('ExtApi-UploadFile', () => { page = await program.reLaunch(PAGE_PATH) await page.waitFor(600); await page.callMethod('jest_uploadFile'); - await page.waitFor(500); + await page.waitFor(1000); res = await page.data('jest_result'); }); diff --git a/pages/API/websocket-socketTask/websocket-socketTask.test.js b/pages/API/websocket-socketTask/websocket-socketTask.test.js index 6a3bc3d3..081ff8bc 100644 --- a/pages/API/websocket-socketTask/websocket-socketTask.test.js +++ b/pages/API/websocket-socketTask/websocket-socketTask.test.js @@ -8,7 +8,7 @@ describe('ExtApi-WebSocket', () => { page = await program.reLaunch(PAGE_PATH) await page.waitFor(600); await page.callMethod('jest_connectSocket'); - await page.waitFor(500); + await page.waitFor(1500); res = await page.data('jest_result'); }); -- GitLab