Skip to content

Commit 5736984

Browse files
committed
Increase stress test timeout
1 parent d22358d commit 5736984

File tree

1 file changed

+13
-13
lines changed
  • krpc/krpc-test/src/jvmTest/kotlin/kotlinx/rpc/krpc/test/stress

1 file changed

+13
-13
lines changed

krpc/krpc-test/src/jvmTest/kotlin/kotlinx/rpc/krpc/test/stress/StressTest.kt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,54 +24,54 @@ import kotlin.time.Duration.Companion.seconds
2424
class StressTest : BaseStressTest() {
2525
// ~30 sec, 300_000 messages
2626
@Test
27-
fun `unary, buffer 100, launches 3_000 x 100`() = testUnary(100, 120.seconds, 3_000, 100)
27+
fun `unary, buffer 100, launches 3_000 x 100`() = testUnary(100, 300.seconds, 3_000, 100)
2828

2929
// ~10 sec, 100_000 messages
3030
@Test
31-
fun `unary, buffer 1, launches 10_000 x 10`() = testUnary(1, 120.seconds, 10_000, 10)
31+
fun `unary, buffer 1, launches 10_000 x 10`() = testUnary(1, 300.seconds, 10_000, 10)
3232

3333
// ~51 min, 500_000 messages
3434
@Test
35-
fun `unary, 1000 buffer, launches 50_000 x 10`() = testUnary(1000, 180.seconds, 50_000, 10)
35+
fun `unary, 1000 buffer, launches 50_000 x 10`() = testUnary(1000, 400.seconds, 50_000, 10)
3636

3737

3838
// ~15 sec, 4_000_000 messages
3939
@Test
40-
fun `server streaming, buffer 30 buf, launches 200 x 10`() = testServerStreaming(30, 120.seconds, 200, 10)
40+
fun `server streaming, buffer 30 buf, launches 200 x 10`() = testServerStreaming(30, 300.seconds, 200, 10)
4141

4242
// ~19 sec, 4_000_000 messages
4343
@Test
44-
fun `server streaming, buffer 1, launches 200 x 10`() = testServerStreaming(1, 120.seconds, 200, 10)
44+
fun `server streaming, buffer 1, launches 200 x 10`() = testServerStreaming(1, 300.seconds, 200, 10)
4545

4646
// ~14 sec, 4_000_000 messages
4747
@Test
48-
fun `server streaming, buffer 2000, launches 200 x 10`() = testServerStreaming(2000, 180.seconds, 200, 10)
48+
fun `server streaming, buffer 2000, launches 200 x 10`() = testServerStreaming(2000, 400.seconds, 200, 10)
4949

5050

5151
// ~15 sec, 4_000_000 messages
5252
@Test
53-
fun `client streaming, buffer 30, launches 200 x 10`() = testClientStreaming(30, 120.seconds, 200, 10)
53+
fun `client streaming, buffer 30, launches 200 x 10`() = testClientStreaming(30, 300.seconds, 200, 10)
5454

5555
// ~19 sec, 4_000_000 messages
5656
@Test
57-
fun `client streaming, buffer 1, launches 200 x 10`() = testClientStreaming(1, 120.seconds, 200, 10)
57+
fun `client streaming, buffer 1, launches 200 x 10`() = testClientStreaming(1, 300.seconds, 200, 10)
5858

5959
// ~15 sec, 4_000_000 messages
6060
@Test
61-
fun `client streaming, buffer 2000, launches 200 x 10`() = testClientStreaming(2000, 180.seconds, 200, 10)
61+
fun `client streaming, buffer 2000, launches 200 x 10`() = testClientStreaming(2000, 400.seconds, 200, 10)
6262

6363

6464
// ~23 sec, 4_500_000 messages
6565
@Test
66-
fun `bidi streaming, buffer 30, launches 150 x 10`() = testBidiStreaming(30, 120.seconds, 150, 10)
66+
fun `bidi streaming, buffer 30, launches 150 x 10`() = testBidiStreaming(30, 300.seconds, 150, 10)
6767

6868
// ~24 sec, 4_500_000 messages
6969
@Test
70-
fun `bidi streaming, buffer 1, launches 150 x 10`() = testBidiStreaming(1, 120.seconds, 150, 10)
70+
fun `bidi streaming, buffer 1, launches 150 x 10`() = testBidiStreaming(1, 300.seconds, 150, 10)
7171

7272
// ~20 sec, 4_500_000 messages
7373
@Test
74-
fun `bidi streaming, buffer 2000, launches 150 x 10`() = testBidiStreaming(2000, 120.seconds, 150, 10)
74+
fun `bidi streaming, buffer 2000, launches 150 x 10`() = testBidiStreaming(2000, 300.seconds, 150, 10)
7575
}
7676

7777

@@ -179,7 +179,7 @@ abstract class BaseStressTest : BaseServiceTest() {
179179

180180
private fun runTest(
181181
perCallBufferSize: Int = 100,
182-
timeout: Duration = 120.seconds,
182+
timeout: Duration = 300.seconds,
183183
body: suspend Env.(Counter) -> Unit,
184184
) = runTestWithCoroutinesProbes(timeout = timeout) {
185185
RpcInternalDumpLoggerContainer.set(null)

0 commit comments

Comments
 (0)