File tree 1 file changed +4
-4
lines changed
kotlinx-coroutines-core/jvm/test/lincheck
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ abstract class ChannelLincheckTestBase(
62
62
e.testResult
63
63
}
64
64
65
- @Operation
65
+ // @Operation TODO Lincheck doesn't work with inline classes
66
66
fun trySend (@Param(name = " value" ) value : Int ): Any = c.trySend(value)
67
67
.onSuccess { return true }
68
68
.onFailure {
@@ -85,11 +85,11 @@ abstract class ChannelLincheckTestBase(
85
85
e.testResult
86
86
}
87
87
88
- @Operation
88
+ // @Operation TODO Lincheck doesn't work with inline classes
89
89
fun tryReceive (): Any? =
90
90
c.tryReceive()
91
- .onSuccess { it }
92
- .onFailure { if (it is NumberedCancellationException ) it.testResult else throw it!! }
91
+ .onSuccess { return it }
92
+ .onFailure { return if (it is NumberedCancellationException ) it.testResult else throw it!! }
93
93
94
94
// TODO: this operation should be (and can be!) linearizable, but is not
95
95
// @Operation
You can’t perform that action at this time.
0 commit comments