Skip to content

Commit f7204d4

Browse files
authored
Do not timeout tests locally (#2077)
1 parent 8017fc3 commit f7204d4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ allprojects {
9999

100100
apply from: script("ide")
101101

102+
boolean isCiServer = System.env["CI"] || System.env["GITHUB_ACTIONS"]
102103
subprojects {
103104
apply plugin: "java-library"
104105
apply plugin: "groovy"
@@ -195,7 +196,10 @@ subprojects {
195196
}
196197
}
197198
// As a generous general timeout, instead of the 6h of GHA.
198-
timeout = Duration.ofMinutes(15)
199+
// But only on CI or longer needing debug sessions get killed by the timeout.
200+
if (isCiServer) {
201+
timeout = Duration.ofMinutes(15)
202+
}
199203
}
200204

201205
tasks.register("allDependencyInsight", DependencyInsightReportTask) {}

0 commit comments

Comments
 (0)