Skip to content

Commit

Permalink
test: fix wire tests (#3609)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgozman authored Aug 25, 2020
1 parent b9d6324 commit 3b2f14f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
2 changes: 1 addition & 1 deletion test/playwright.fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit 3b2f14f

Please sign in to comment.