We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3428774 commit 2ae42b9Copy full SHA for 2ae42b9
kotlinx-coroutines-test/README.md
@@ -158,7 +158,7 @@ example an uncompleted `Deferred<Foo>` is provided to the function under test vi
158
159
```kotlin
160
@Test(expected = TimeoutCancellationException::class)
161
-fun testFooWithTimeout() {
+fun testFooWithTimeout() = runBlockingTest {
162
val uncompleted = CompletableDeferred<Foo>() // this Deferred<Foo> will never complete
163
foo(uncompleted)
164
advanceTimeBy(1_000) // advance time, which will cause the timeout to throw an exception
0 commit comments