diff --git a/.gitignore b/.gitignore index 7421a7fef..bf7690ed7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ target/ .classpath +.factorypath .project .settings/ *.iml diff --git a/jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/jaxrs21/ee/sse/sseeventsource/RepeatedCasterResource.java b/jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/jaxrs21/ee/sse/sseeventsource/RepeatedCasterResource.java index 886a0002a..85239ce13 100644 --- a/jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/jaxrs21/ee/sse/sseeventsource/RepeatedCasterResource.java +++ b/jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/jaxrs21/ee/sse/sseeventsource/RepeatedCasterResource.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, 2020 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2017, 2023 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0, which is available at @@ -54,10 +54,10 @@ public void run() { isOpen = !sink.isClosed(); } while (!sink.isClosed() && cast) { - sink.send(sse.newEvent(String.valueOf(cnt++))); try { - Thread.sleep(500L); - } catch (InterruptedException e1) { + sink.send(sse.newEvent(String.valueOf(cnt++))); + Thread.sleep(1L); + } catch (Exception e1) { cast = false; } synchronized (isOpen) {