Skip to content

Commit fa25cc0

Browse files
committed
test: bump pwaPlugin test wait for CI
1 parent c1142e2 commit fa25cc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vue/cli-plugin-pwa/__tests__/pwaPlugin.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ test('pwa', async () => {
5858
const launched = await launchPuppeteer(`http://localhost:${port}/`)
5959
browser = launched.browser
6060

61-
await new Promise(r => setTimeout(r, 500))
61+
await new Promise(r => setTimeout(r, process.env.CI ? 1000 : 300))
6262
const logs = launched.logs
6363
expect(logs.some(msg => msg.match(/Content has been cached for offline use/))).toBe(true)
6464
expect(logs.some(msg => msg.match(/App is being served from cache by a service worker/))).toBe(true)

0 commit comments

Comments
 (0)