Skip to content

Commit

Permalink
do not use stdoutsocket for console logs on Windows (#52208)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmlemeshko authored Dec 5, 2019
1 parent b66415e commit 9f024b8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/functional/services/remote/webdriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,20 @@ async function attemptToCreateCommand(
// See: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Headless_mode
firefoxOptions.headless();
}

// Windows issue with stout socket https:/elastic/kibana/issues/52053
if (process.platform === 'win32') {
const session = await new Builder()
.forBrowser(browserType)
.setFirefoxOptions(firefoxOptions)
.setFirefoxService(new firefox.ServiceBuilder(geckoDriver.path))
.build();
return {
session,
consoleLog$: Rx.EMPTY,
};
}

const { input, chunk$, cleanup } = await createStdoutSocket();
lifecycle.on('cleanup', cleanup);

Expand Down

0 comments on commit 9f024b8

Please sign in to comment.