We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a62f27 commit 5fb56f4Copy full SHA for 5fb56f4
integration/kotlinx-coroutines-guava/test/ListenableFutureTest.kt
@@ -127,6 +127,17 @@ class ListenableFutureTest : TestBase() {
127
}
128
129
130
+ @Test
131
+ fun testFutureLazyStartThrows() {
132
+ expect(1)
133
+ val e = assertFailsWith<IllegalArgumentException> {
134
+ GlobalScope.future(start = CoroutineStart.LAZY) {}
135
+ }
136
+
137
+ assertThat(e.message, IsEqual("LAZY start is not supported"))
138
+ finish(2)
139
140
141
@Test
142
fun testCompletedDeferredAsListenableFuture() = runBlocking {
143
expect(1)
0 commit comments