• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package kotlinx.coroutines.debug.junit5
2 
3 import kotlinx.coroutines.*
4 import org.junit.jupiter.api.*
5 
6 /**
7  * This test checks that nested classes correctly recognize the [CoroutinesTimeout] annotation.
8  *
9  * This test class is not intended to be run manually. Instead, use [CoroutinesTimeoutTest] as the entry point.
10  */
11 @CoroutinesTimeout(200)
12 class CoroutinesTimeoutNestedTest {
13     @Nested
14     inner class NestedInInherited {
15         @Test
<lambda>null16         fun usesOuterClassTimeout() = runBlocking {
17             delay(1000)
18         }
19 
20         @Test
<lambda>null21         fun fitsInOuterClassTimeout() = runBlocking {
22             delay(10)
23         }
24     }
25 }
26