Skip to content

Commit dfb7f7b

Browse files
committed
try to fix flacky test
1 parent b34de79 commit dfb7f7b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rsocket-core/src/commonTest/kotlin/io/rsocket/kotlin/internal/RSocketRequesterTest.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,15 +296,18 @@ class RSocketRequesterTest : TestWithConnection(), TestWithLeakCheck {
296296

297297
private fun streamIsTerminatedOnConnectionClose(request: suspend () -> Unit) = test {
298298
connection.launch {
299+
delay(200)
299300
connection.test {
300301
expectFrame { assertTrue(it is RequestFrame) }
301302
connection.job.cancel()
302-
expectNoEventsIn(200)
303+
expectComplete()
303304
}
304305
}
305306
assertFailsWith(CancellationException::class) { request() }
306307

307308
assertFailsWith(CancellationException::class) { request() }
309+
310+
delay(200)
308311
}
309312

310313
@Test

0 commit comments

Comments
 (0)