diff --git a/build.gradle b/build.gradle index 6e8c34f..5155c27 100644 --- a/build.gradle +++ b/build.gradle @@ -33,7 +33,7 @@ allprojects { } ext.versions = [ - "okhttp": "4.4.1", + "okhttp": "4.5.0", "slf4j": "1.7.22" ] diff --git a/src/test/java/com/launchdarkly/eventsource/StubServer.java b/src/test/java/com/launchdarkly/eventsource/StubServer.java index 5ec8936..8a228c6 100644 --- a/src/test/java/com/launchdarkly/eventsource/StubServer.java +++ b/src/test/java/com/launchdarkly/eventsource/StubServer.java @@ -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();