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 import org.junit.jupiter.api.extension.* 10 11 class RegisterExtensionExample { 12 @JvmField 13 @RegisterExtension 14 internal val timeout = CoroutinesTimeoutExtension.seconds(5) 15 16 @Test <lambda>null17 fun testThatHangs() = runBlocking { 18 delay(Long.MAX_VALUE) // somewhere deep in the stack 19 } 20 }