Skip to content

Commit

Permalink
Changing test channel variable names to accurately reflect type
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Weaver committed Jun 23, 2018
1 parent e80624c commit 86bfdd7
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ class ReceiveChannelTest {
val textMessage2 = "Hi"
val bytesMessage1 = "Yo".toByteArray()
val bytesMessage2 = "Sup".toByteArray()
val testTextSubscriber = server.observeText()
val testBytesSubscriber = server.observeBytes()
val testTextChannel = server.observeText()
val testBytesChannel = server.observeBytes()

// When
client.sendText(textMessage1)
Expand All @@ -68,11 +68,11 @@ class ReceiveChannelTest {
)

runBlocking {
assertThat(testTextSubscriber.receiveOrNull()).isEqualTo(textMessage1)
assertThat(testTextSubscriber.receiveOrNull()).isEqualTo(textMessage2)
assertThat(testTextChannel.receiveOrNull()).isEqualTo(textMessage1)
assertThat(testTextChannel.receiveOrNull()).isEqualTo(textMessage2)

assertThat(testBytesSubscriber.receiveOrNull()).isEqualTo(bytesMessage1)
assertThat(testBytesSubscriber.receiveOrNull()).isEqualTo(bytesMessage2)
assertThat(testBytesChannel.receiveOrNull()).isEqualTo(bytesMessage1)
assertThat(testBytesChannel.receiveOrNull()).isEqualTo(bytesMessage2)
}
}

Expand Down

0 comments on commit 86bfdd7

Please sign in to comment.