diff --git a/test/browser.spec.js b/test/browser.spec.js index 614a045bebb..17cb2e2249b 100644 --- a/test/browser.spec.js +++ b/test/browser.spec.js @@ -57,7 +57,7 @@ module.exports.addTests = function({testRunner, expect, headless, puppeteer, CHR const browserWSEndpoint = browser.wsEndpoint(); const remoteBrowser = await puppeteer.connect({browserWSEndpoint}); expect(remoteBrowser.process()).toBe(null); - await remoteBrowser.disconnect(); + remoteBrowser.disconnect(); }); }); @@ -66,7 +66,7 @@ module.exports.addTests = function({testRunner, expect, headless, puppeteer, CHR const browserWSEndpoint = browser.wsEndpoint(); const newBrowser = await puppeteer.connect({browserWSEndpoint}); expect(newBrowser.isConnected()).toBe(true); - await newBrowser.disconnect(); + newBrowser.disconnect(); expect(newBrowser.isConnected()).toBe(false); }); }); diff --git a/test/browsercontext.spec.js b/test/browsercontext.spec.js index 81fa59de3a8..012e8c92854 100644 --- a/test/browsercontext.spec.js +++ b/test/browsercontext.spec.js @@ -149,7 +149,7 @@ module.exports.addTests = function({testRunner, expect, puppeteer}) { }); const contexts = remoteBrowser.browserContexts(); expect(contexts.length).toBe(2); - await remoteBrowser.disconnect(); + remoteBrowser.disconnect(); await context.close(); }); }); diff --git a/test/launcher.spec.js b/test/launcher.spec.js index fd439644139..510d1c9ef1b 100644 --- a/test/launcher.spec.js +++ b/test/launcher.spec.js @@ -67,7 +67,7 @@ module.exports.addTests = function({testRunner, expect, defaultBrowserOptions, p const page = await remote.newPage(); const navigationPromise = page.goto(server.PREFIX + '/one-style.html', {timeout: 60000}).catch(e => e); await server.waitForRequest('/one-style.css'); - await remote.disconnect(); + remote.disconnect(); const error = await navigationPromise; expect(error.message).toBe('Navigation failed because browser has disconnected!'); await browser.close(); @@ -78,7 +78,7 @@ module.exports.addTests = function({testRunner, expect, defaultBrowserOptions, p const remote = await puppeteer.connect({browserWSEndpoint: browser.wsEndpoint()}); const page = await remote.newPage(); const watchdog = page.waitForSelector('div', {timeout: 60000}).catch(e => e); - await remote.disconnect(); + remote.disconnect(); const error = await watchdog; expect(error.message).toContain('Protocol error'); await browser.close();