We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e64b52c commit 8e9e4d1Copy full SHA for 8e9e4d1
ui/kotlinx-coroutines-swing/test/SwingTest.kt
@@ -34,7 +34,8 @@ class SwingTest : TestBase() {
34
}
35
36
private class SwingComponent(coroutineContext: CoroutineContext = EmptyCoroutineContext) :
37
- CoroutineScope by MainScope() + coroutineContext {
+ CoroutineScope by MainScope() + coroutineContext
38
+ {
39
public var executed = false
40
fun testLaunch(): Job = launch {
41
check(SwingUtilities.isEventDispatchThread())
@@ -49,6 +50,7 @@ class SwingTest : TestBase() {
49
50
delay(Long.MAX_VALUE)
51
52
53
+
54
@Test
55
fun testLaunchInMainScope() = runTest {
56
val component = SwingComponent()
0 commit comments