Skip to content

Commit bdf2f9f

Browse files
committed
wip try to debug tests
1 parent f917dc0 commit bdf2f9f

File tree

2 files changed

+6
-3
lines changed
  • rsocket-core/src/commonMain/kotlin/io/rsocket/kotlin/operation
  • rsocket-transport-tests/src/commonMain/kotlin/io/rsocket/kotlin/transport/tests

2 files changed

+6
-3
lines changed

rsocket-core/src/commonMain/kotlin/io/rsocket/kotlin/operation/OperationInbound.kt

+4-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ internal class OperationFrameHandler(private val inbound: OperationInbound) : Cl
5252
}
5353

5454
fun handleFrame(frame: Frame) {
55-
if (!inbound.isFrameExpected(frame.type)) return frame.close()
55+
if (!inbound.isFrameExpected(frame.type)) {
56+
println("unexpected frame: $frame")
57+
return frame.close()
58+
}
5659

5760
when (frame) {
5861
is CancelFrame -> inbound.receiveCancel()

rsocket-transport-tests/src/commonMain/kotlin/io/rsocket/kotlin/transport/tests/TransportTest.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import kotlin.time.Duration.Companion.seconds
3333
//TODO: need to somehow rework those tests, as now they are super flaky
3434
// there is some issue in K/N tcp...
3535
abstract class TransportTest : SuspendTest, TestWithLeakCheck {
36-
override val testTimeout: Duration = 5.minutes
36+
override val testTimeout: Duration = 1.minutes
3737

3838
private val testJob = SupervisorJob()
3939
protected val testContext = testJob + TestExceptionHandler
@@ -54,7 +54,7 @@ abstract class TransportTest : SuspendTest, TestWithLeakCheck {
5454
SERVER.start(serverTransport, ACCEPTOR)
5555

5656
override suspend fun after() {
57-
client.coroutineContext.job.cancelAndJoin()
57+
//client.coroutineContext.job.cancelAndJoin()
5858
testJob.cancelAndJoin()
5959
}
6060

0 commit comments

Comments
 (0)