From 3b2f14fcee7ad80714a58a5ed4f6600de112d053 Mon Sep 17 00:00:00 2001 From: Dmitry Gozman Date: Mon, 24 Aug 2020 17:32:55 -0700 Subject: [PATCH] test: fix wire tests (#3609) --- src/server.ts | 2 +- test/playwright.fixtures.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server.ts b/src/server.ts index 0055cee82ade3..172ecd5bbb879 100644 --- a/src/server.ts +++ b/src/server.ts @@ -33,6 +33,6 @@ transport.onclose = async () => { transport.onmessage = message => dispatcherConnection.dispatch(JSON.parse(message)); dispatcherConnection.onmessage = message => transport.send(JSON.stringify(message)); -const playwright = new Playwright(__dirname, require('../../browsers.json')['browsers']); +const playwright = new Playwright(__dirname, require('../browsers.json')['browsers']); (playwright as any).electron = new Electron(); new PlaywrightDispatcher(dispatcherConnection.rootDispatcher(), playwright); diff --git a/test/playwright.fixtures.ts b/test/playwright.fixtures.ts index 29de3c4d388d0..9595dd232a0b7 100644 --- a/test/playwright.fixtures.ts +++ b/test/playwright.fixtures.ts @@ -117,7 +117,7 @@ registerWorkerFixture('playwright', async({browserName}, test) => { const {coverage, uninstall} = installCoverageHooks(browserName); if (options.WIRE) { const connection = new Connection(); - const spawnedProcess = childProcess.fork(path.join(__dirname, '..', 'lib', 'server'), [], { + const spawnedProcess = childProcess.fork(path.join(__dirname, '..', 'lib', 'server.js'), [], { stdio: 'pipe', detached: true, });