File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
kotlinx-coroutines-core/js/test Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -9,13 +9,12 @@ import kotlin.test.*
9
9
10
10
class ImmediateDispatcherTest : MainDispatcherTestBase () {
11
11
12
- /* * Tests that entering [MainCoroutineDispatcher.immediate] takes priority even outside [Dispatchers.Main] . */
12
+ /* * Tests that [MainCoroutineDispatcher.immediate] doesn't require dispatches from the test context . */
13
13
@Test
14
- @Ignore // TODO: started failing for some reason
15
14
fun testImmediate () = runTest {
16
15
expect(1 )
17
16
val job = launch { expect(3 ) }
18
- assertTrue (Dispatchers .Main .immediate.isDispatchNeeded(currentCoroutineContext()))
17
+ assertFalse (Dispatchers .Main .immediate.isDispatchNeeded(currentCoroutineContext()))
19
18
withContext(Dispatchers .Main .immediate) {
20
19
expect(2 )
21
20
}
You can’t perform that action at this time.
0 commit comments