Skip to content

Commit

Permalink
Forcing test server to stop on shutdown.
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed May 24, 2018
1 parent e25aa00 commit 2606295
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ public OutOfProcessSeleniumServer start(String... extraFlags) throws IOException
throw new RuntimeException(e);
}

Runtime.getRuntime().addShutdownHook(new Thread(this::stop));

return this;
}

Expand Down

0 comments on commit 2606295

Please sign in to comment.