From c80c799f8d60a96c1dfe04fda9ed7236f1e3d721 Mon Sep 17 00:00:00 2001 From: Scott Mitchell Date: Thu, 28 Jul 2022 22:03:39 -0700 Subject: [PATCH] ConnectablePayloadWriterTest.multiThreadedProducerConsumer increase timeout Motivation: The default timeout is 10 seconds. When build servers or local machines are busy this test may timeout. --- .../concurrent/api/internal/ConnectablePayloadWriterTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/servicetalk-concurrent-api-internal/src/test/java/io/servicetalk/concurrent/api/internal/ConnectablePayloadWriterTest.java b/servicetalk-concurrent-api-internal/src/test/java/io/servicetalk/concurrent/api/internal/ConnectablePayloadWriterTest.java index 66f8eb0f3b..3c897a6681 100644 --- a/servicetalk-concurrent-api-internal/src/test/java/io/servicetalk/concurrent/api/internal/ConnectablePayloadWriterTest.java +++ b/servicetalk-concurrent-api-internal/src/test/java/io/servicetalk/concurrent/api/internal/ConnectablePayloadWriterTest.java @@ -23,6 +23,7 @@ import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.Timeout; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -660,6 +661,7 @@ void closeNoWrite() throws Exception { } @Test + @Timeout(30) void multiThreadedProducerConsumer() throws Exception { final Random r = new Random(); final long seed = r.nextLong(); // capture seed to have repeatable tests