We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79f2e72 commit b91074cCopy full SHA for b91074c
gradle/dump_hanging_test.gradle
@@ -68,16 +68,16 @@ tasks.withType(Test).configureEach { testTask ->
68
}, delayMinutes, TimeUnit.MINUTES)
69
70
// Store handles for cancellation in doLast.
71
- ext.dumpFuture = future
72
- ext.dumpScheduler = scheduler
+ testTask.ext.dumpFuture = future
+ testTask.ext.dumpScheduler = scheduler
73
}
74
75
doLast {
76
// Cancel if the task finished before the scheduled dump.
77
try {
78
- ext.dumpFuture?.cancel(false)
+ testTask.ext.dumpFuture?.cancel(false)
79
} finally {
80
- ext.dumpScheduler?.shutdownNow()
+ testTask.ext.dumpScheduler?.shutdownNow()
81
82
83
0 commit comments