Skip to content

Commit cd7afaf

Browse files
committed
Fix debug probes not being installed
1 parent a20c8f2 commit cd7afaf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kotlinx-coroutines-debug/src/junit5/CoroutinesTimeoutExtension.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class CoroutinesTimeoutExtension: InvocationInterceptor {
3939
}.orElseGet {
4040
throw UnsupportedOperationException("CoroutinesTimeoutExtension should not be used directly; annotate the test class or method with CoroutinesTimeout instead.")
4141
}
42-
invocation.proceed()
42+
interceptInvocation(invocation, invocationContext.executable.name, annotation)
4343
}
4444

4545
override fun interceptAfterAllMethod(
@@ -107,6 +107,7 @@ public class CoroutinesTimeoutExtension: InvocationInterceptor {
107107
invocation.proceed()
108108
}
109109
val testThread = Thread(testResult, "Timeout test thread").apply { isDaemon = true }
110+
DebugProbes.install()
110111
try {
111112
testThread.start()
112113
// Await until test is started to take only test execution time into account

0 commit comments

Comments
 (0)