aboutsummaryrefslogtreecommitdiffstats
path: root/ui/kotlinx-coroutines-javafx/test/JavaFxObservableAsFlowTest.kt
diff options
context:
space:
mode:
authorAurimas Liutikas <aurimas@google.com>2021-08-17 16:49:58 -0700
committerAurimas Liutikas <aurimas@google.com>2021-08-18 08:57:44 -0700
commit531d55eaeac09ad6cde55687ef802d4235040985 (patch)
tree747e5be83c6e6a2e2d9a164ebd03c5e45e6ec952 /ui/kotlinx-coroutines-javafx/test/JavaFxObservableAsFlowTest.kt
parentb5da2582b1f1d46a92cc6ceeb1525788addd5944 (diff)
parentb231887c3214187cf7f09a74073f84383a487b71 (diff)
downloadplatform_external_kotlinx.coroutines-531d55eaeac09ad6cde55687ef802d4235040985.tar.gz
platform_external_kotlinx.coroutines-531d55eaeac09ad6cde55687ef802d4235040985.tar.bz2
platform_external_kotlinx.coroutines-531d55eaeac09ad6cde55687ef802d4235040985.zip
Merge Kotlin coroutines 1.5.1HEADandroid-s-beta-5masterandroid-s-beta-5
https://github.com/Kotlin/kotlinx.coroutines/releases/tag/1.5.1 Test: mmma external/kotlinx.coroutines Change-Id: I7de89ccc26113be895f28935addb27ee07e50ee7
Diffstat (limited to 'ui/kotlinx-coroutines-javafx/test/JavaFxObservableAsFlowTest.kt')
-rw-r--r--ui/kotlinx-coroutines-javafx/test/JavaFxObservableAsFlowTest.kt16
1 files changed, 16 insertions, 0 deletions
diff --git a/ui/kotlinx-coroutines-javafx/test/JavaFxObservableAsFlowTest.kt b/ui/kotlinx-coroutines-javafx/test/JavaFxObservableAsFlowTest.kt
index 69640501..bc40b0fd 100644
--- a/ui/kotlinx-coroutines-javafx/test/JavaFxObservableAsFlowTest.kt
+++ b/ui/kotlinx-coroutines-javafx/test/JavaFxObservableAsFlowTest.kt
@@ -83,4 +83,20 @@ class JavaFxObservableAsFlowTest : TestBase() {
}
}
+ @Test
+ fun testIntermediateCrash() = runTest {
+ if (!initPlatform()) {
+ println("Skipping JavaFxTest in headless environment")
+ return@runTest // ignore test in headless environments
+ }
+
+ val property = SimpleIntegerProperty(0)
+
+ assertFailsWith<TestException> {
+ property.asFlow().onEach {
+ yield()
+ throw TestException()
+ }.collect()
+ }
+ }
}