Skip to content

Commit

Permalink
[java] ensure the executorService is healthy
Browse files Browse the repository at this point in the history
  • Loading branch information
joerg1985 committed Aug 26, 2023
1 parent 6d6b110 commit 6680228
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion java/test/org/openqa/selenium/net/UrlCheckerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,15 @@
class UrlCheckerTest {

private final UrlChecker urlChecker = new UrlChecker();
private final ExecutorService executorService = Executors.newSingleThreadExecutor();
private ExecutorService executorService;
private NettyAppServer server;
private URL url;

@BeforeEach
public void buildServer() throws MalformedURLException, UrlChecker.TimeoutException {
// Warming NettyServer up
final NettyAppServer server = createServer();
executorService = Executors.newSingleThreadExecutor();
executorService.submit(
() -> {
server.start();
Expand Down

0 comments on commit 6680228

Please sign in to comment.