From 6430bbb4603d9d8877f5300a5d3fdad24f0deb6e Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Thu, 5 Feb 2015 22:40:17 -0800 Subject: [PATCH] Wait for chromedriver's startup message on stdout --- spec/integration/startup-spec.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/integration/startup-spec.coffee b/spec/integration/startup-spec.coffee index 0abd9d9f5..82e880a47 100644 --- a/spec/integration/startup-spec.coffee +++ b/spec/integration/startup-spec.coffee @@ -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())