Skip to content

Commit ffb124c

Browse files
committed
don't comment out the driver service wait!!!!!!!!!!
Fixes #1123
1 parent bf5ea32 commit ffb124c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

java/client/src/org/openqa/selenium/remote/service/DriverService.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,11 @@ public void start() throws IOException {
163163
process.copyOutputTo(System.err);
164164
process.executeAsync();
165165

166-
//URL status = new URL(url.toString() + "/status");
167-
//new UrlChecker().waitUntilAvailable(20, SECONDS, status);
168-
//} catch (UrlChecker.TimeoutException e) {
169-
// process.checkForError();
170-
// throw new WebDriverException("Timed out waiting for driver server to start.", e);
166+
URL status = new URL(url.toString() + "/status");
167+
new UrlChecker().waitUntilAvailable(20, SECONDS, status);
168+
} catch (UrlChecker.TimeoutException e) {
169+
process.checkForError();
170+
throw new WebDriverException("Timed out waiting for driver server to start.", e);
171171
} finally {
172172
lock.unlock();
173173
}

0 commit comments

Comments
 (0)