aboutsummaryrefslogtreecommitdiffstats
path: root/kotlinx-coroutines-core/common/test/selects/SelectLoopTest.kt
diff options
context:
space:
mode:
Diffstat (limited to 'kotlinx-coroutines-core/common/test/selects/SelectLoopTest.kt')
-rw-r--r--kotlinx-coroutines-core/common/test/selects/SelectLoopTest.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/kotlinx-coroutines-core/common/test/selects/SelectLoopTest.kt b/kotlinx-coroutines-core/common/test/selects/SelectLoopTest.kt
index e31ccfc1..ba8f56ad 100644
--- a/kotlinx-coroutines-core/common/test/selects/SelectLoopTest.kt
+++ b/kotlinx-coroutines-core/common/test/selects/SelectLoopTest.kt
@@ -1,5 +1,5 @@
/*
- * Copyright 2016-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
+ * Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
@file:Suppress("NAMED_ARGUMENTS_NOT_ALLOWED") // KT-21913
@@ -27,7 +27,7 @@ class SelectLoopTest : TestBase() {
try {
while (true) {
select<Unit> {
- channel.onReceiveOrNull {
+ channel.onReceiveCatching {
expectUnreached()
}
job.onJoin {
@@ -40,4 +40,4 @@ class SelectLoopTest : TestBase() {
finish(4)
}
}
-} \ No newline at end of file
+}