Skip to content

Commit

Permalink
fix(wire): fix the wire mode (#4008)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelfeldman authored Sep 30, 2020
1 parent 7ccdc51 commit 6dccd27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/driver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,6 @@ export function runServer() {
(playwright as any).electron = new Electron();
new PlaywrightDispatcher(dispatcherConnection.rootDispatcher(), playwright);
}

if (process.argv[2] === 'serve')
runServer();
2 changes: 1 addition & 1 deletion test/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ fixtures.overrideWorkerFixture('playwright', async ({ browserName, testWorkerInd
if (wire) {
require('../lib/utils/utils').setUnderTest();
const connection = new Connection();
const spawnedProcess = childProcess.fork(path.join(__dirname, '..', 'lib', 'server.js'), [], {
const spawnedProcess = childProcess.fork(path.join(__dirname, '..', 'lib', 'driver.js'), ['serve'], {
stdio: 'pipe',
detached: true,
});
Expand Down

0 comments on commit 6dccd27

Please sign in to comment.