1 /* 2 * Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. 3 */ 4 5 package kotlinx.coroutines.debug.junit5 6 7 import kotlinx.coroutines.* 8 import org.junit.jupiter.api.* 9 10 /** 11 * This test checks that nested classes correctly recognize the [CoroutinesTimeout] annotation. 12 * 13 * This test class is not intended to be run manually. Instead, use [CoroutinesTimeoutTest] as the entry point. 14 */ 15 @CoroutinesTimeout(200) 16 class CoroutinesTimeoutNestedTest { 17 @Nested 18 inner class NestedInInherited { 19 @Test <lambda>null20 fun usesOuterClassTimeout() = runBlocking { 21 delay(1000) 22 } 23 24 @Test <lambda>null25 fun fitsInOuterClassTimeout() = runBlocking { 26 delay(10) 27 } 28 } 29 } 30