Skip to content

Commit

Permalink
add test assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov committed Sep 6, 2023
1 parent 75e6aac commit 0cb5b66
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,12 @@ class YamuxHandlerTest : MuxHandlerAbstractTest() {
)
)

val frame = readFrameOrThrow()
var frame = readFrameOrThrow()
// one message is fully received
assertThat(frame.data).isEqualTo("1984")
frame = readFrameOrThrow()
// the other message is partially received
assertThat(frame.data).isEqualTo("19")
}

@Test
Expand Down

0 comments on commit 0cb5b66

Please sign in to comment.