Skip to content

Commit

Permalink
wip try to debug tests
Browse files Browse the repository at this point in the history
  • Loading branch information
whyoleg committed Mar 14, 2024
1 parent f917dc0 commit bdf2f9f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ internal class OperationFrameHandler(private val inbound: OperationInbound) : Cl
}

fun handleFrame(frame: Frame) {
if (!inbound.isFrameExpected(frame.type)) return frame.close()
if (!inbound.isFrameExpected(frame.type)) {
println("unexpected frame: $frame")
return frame.close()
}

when (frame) {
is CancelFrame -> inbound.receiveCancel()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import kotlin.time.Duration.Companion.seconds
//TODO: need to somehow rework those tests, as now they are super flaky
// there is some issue in K/N tcp...
abstract class TransportTest : SuspendTest, TestWithLeakCheck {
override val testTimeout: Duration = 5.minutes
override val testTimeout: Duration = 1.minutes

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

override suspend fun after() {
client.coroutineContext.job.cancelAndJoin()
//client.coroutineContext.job.cancelAndJoin()
testJob.cancelAndJoin()
}

Expand Down

0 comments on commit bdf2f9f

Please sign in to comment.