mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Wait for chromedriver's startup message on stdout
This commit is contained in:
@@ -26,7 +26,7 @@ describe "Starting Atom", ->
|
||||
chromeDriver = spawn "chromedriver", ["--verbose", "--port=#{ChromeDriverPort}"]
|
||||
chromeDriver.on "error", (error) ->
|
||||
throw new Error("chromedriver failed to start: #{error.message}")
|
||||
chromeDriver.stderr.on "data", -> done()
|
||||
chromeDriver.stdout.on "data", -> done()
|
||||
|
||||
afterEach ->
|
||||
waitsForPromise -> driver.quit().thenFinally(-> chromeDriver.kill())
|
||||
|
||||
Reference in New Issue
Block a user