Skip to content

Commit

Permalink
Fix race in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
qwwdfsad committed May 27, 2019
1 parent c34c1d5 commit ad0d42d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kotlinx-coroutines-core/jvm/test/flow/CallbackFlowTest.kt
Expand Up @@ -41,7 +41,7 @@ class CallbackFlowTest : TestBase() {

val flow = channelFlow<Int>(16) {
api.start(channel)
channel.invokeOnClose {
awaitClose {
api.stop()
}
}
Expand Down Expand Up @@ -85,7 +85,7 @@ class CallbackFlowTest : TestBase() {

val flow = channelFlow<Int> {
api.start(channel)
channel.invokeOnClose {
awaitClose {
api.stop()
}
}
Expand Down

0 comments on commit ad0d42d

Please sign in to comment.