Skip to content

Commit

Permalink
longer timeout for cleaner shutdown of test servers
Browse files Browse the repository at this point in the history
  • Loading branch information
eli-darkly committed Apr 7, 2020
1 parent c2a6bb5 commit 439b9ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/java/com/launchdarkly/eventsource/StubServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public void handle(String target, Request baseRequest, HttpServletRequest reques
baseRequest.setHandled(true);
}
});
server.setStopTimeout(1); // without this, Jetty does not interrupt worker threads on shutdown
server.setStopTimeout(100); // without this, Jetty does not interrupt worker threads on shutdown

try {
server.start();
Expand Down

0 comments on commit 439b9ff

Please sign in to comment.