diff --git a/test/e2e/unauthorized.test.js b/test/e2e/unauthorized.test.js index d07459c..1b15c42 100644 --- a/test/e2e/unauthorized.test.js +++ b/test/e2e/unauthorized.test.js @@ -33,7 +33,9 @@ describe('connection', () => { setTimeout(() => { expect(connections).toBe(0) done() - }, 1000) + }, 5000) + + page.goto('http://localhost:4000/e2e/unauthorized.html') }) }) @@ -43,8 +45,6 @@ describe('unauthorized', () => { }) }) -await page.goto('http://localhost:4000/e2e/unauthorized.html') - afterAll(async () => { const close = () => { return new Promise(resolve => {