-
-
Save zsmb13/e353ba133a5d775bd836bcffc264203c to your computer and use it in GitHub Desktop.
Migrating to the new coroutines 1.6 test APIs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2022 Google LLC. | |
// SPDX-License-Identifier: Apache-2.0 | |
@Test | |
-fun test() { | |
- coroutineRule.runBlockingTest { | |
- // Test coroutine things | |
- } | |
-} | |
+fun test() = runTest { | |
+ // Test coroutine things | |
+} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment