Skip to content

Commit aca2a2d

Browse files
committed
Fix JavaFxTest in headless environments
1 parent 129ec8b commit aca2a2d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ui/kotlinx-coroutines-javafx/test/JavaFxTest.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44

55
package kotlinx.coroutines.experimental.javafx
66

7-
import javafx.application.Platform
7+
import javafx.application.*
88
import kotlinx.coroutines.experimental.*
9-
import org.junit.Before
10-
import org.junit.Test
9+
import org.junit.*
1110

1211
class JavaFxTest : TestBase() {
1312
@Before
@@ -19,7 +18,7 @@ class JavaFxTest : TestBase() {
1918
fun testDelay() {
2019
try {
2120
initPlatform()
22-
} catch (e: UnsupportedOperationException) {
21+
} catch (e: Exception) {
2322
println("Skipping JavaFxTest in headless environment")
2423
return // ignore test in headless environments
2524
}

0 commit comments

Comments
 (0)