Skip to content

Commit

Permalink
Fix deprecation error
Browse files Browse the repository at this point in the history
  • Loading branch information
qwwdfsad committed Nov 17, 2021
1 parent 603bd79 commit fe9f50b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions reactive/kotlinx-coroutines-jdk9/test/PublishTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,8 @@ class PublishTest : TestBase() {
val publisher = flowPublish {
assertFailsWith<NullPointerException> { send(null) }
assertFailsWith<NullPointerException> { trySend(null) }
@Suppress("DEPRECATION")
assertFailsWith<NullPointerException> { offer(null) }
send("OK")
}
assertEquals("OK", publisher.awaitFirstOrNull())
}
}
}

0 comments on commit fe9f50b

Please sign in to comment.