Skip to content

Commit ce90783

Browse files
committed
Improvements in ServerSseTest
Signed-off-by: Jorge Bescos Gascon <jorge.bescos.gascon@oracle.com>
1 parent 70b7223 commit ce90783

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

microprofile/server/src/test/java/io/helidon/microprofile/server/ServerSseTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ private void innerTest(String endpoint, CompletableFuture<Void> future, int even
172172
// Wait for server to detect connection closed
173173
if (future != null) {
174174
try {
175-
future.get(200000000, TimeUnit.MILLISECONDS);
175+
future.get(2000, TimeUnit.MILLISECONDS);
176176
} catch (RuntimeException | Error e) {
177177
fail("Closing of SSE connection not detected!", e);
178178
} catch (InterruptedException e) {
@@ -193,7 +193,7 @@ public Set<Object> getSingletons() {
193193

194194
@Path("/test1")
195195
public final class TestResource1 {
196-
private static volatile boolean closed;
196+
private static boolean closed;
197197
@GET
198198
@Path("sse")
199199
@Produces(MediaType.SERVER_SENT_EVENTS)
@@ -247,7 +247,7 @@ public void listenToEvents(@Context SseEventSink eventSink, @Context Sse sse) {
247247
@Path("/test4")
248248
public final class TestResource4 {
249249
private static final int TIME_SECONDS = 2;
250-
private volatile boolean fail = true;
250+
private boolean fail = true;
251251

252252
@GET
253253
@Path("sse")

0 commit comments

Comments
 (0)