Skip to content

Commit

Permalink
Update kotlinx-coroutines-debug/test/StandardBuildersDebugTest.kt
Browse files Browse the repository at this point in the history
Co-authored-by: Dmitry Khalanskiy <[email protected]>
  • Loading branch information
qwwdfsad and dkhalanskyjb authored Jun 28, 2023
1 parent 942cd09 commit 2888754
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kotlinx-coroutines-debug/test/StandardBuildersDebugTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class StandardBuildersDebugTest : DebugTestBase() {

val coroutines = DebugProbes.dumpCoroutinesInfo()
assertEquals(1, coroutines.size)
assertTrue { b1.hasNext() && b2.hasNext() } // Don't let GC to collect our coroutines until the test is complete
assertTrue { b1.hasNext() && b2.hasNext() } // Don't let GC collect our coroutines until the test is complete
}

@Test
Expand All @@ -24,7 +24,7 @@ class StandardBuildersDebugTest : DebugTestBase() {
val (b1, b2) = createBuilders()
val coroutines = DebugProbes.dumpCoroutinesInfo()
assertEquals(3, coroutines.size)
assertTrue { b1.hasNext() && b2.hasNext() } // Don't let GC to collect our coroutines until the test is complete
assertTrue { b1.hasNext() && b2.hasNext() } // Don't let GC collect our coroutines until the test is complete
} finally {
DebugProbes.ignoreCoroutinesWithEmptyContext = true
}
Expand Down

0 comments on commit 2888754

Please sign in to comment.