• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2016-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3  */
4 
5 package kotlinx.coroutines
6 
7 import kotlin.coroutines.*
8 import kotlin.test.*
9 
10 class DelayExceptionTest : TestBase() {
11 
12     @Test
<lambda>null13     fun testMaxDelay() = runBlocking {
14         expect(1)
15         val job = launch {
16             expect(2)
17             delay(Long.MAX_VALUE)
18         }
19         yield()
20         job.cancel()
21         finish(3)
22     }
23 }
24