Is there a way to set a global default timeout? #2195
Answered
by
efenderbosch-atg
efenderbosch-atg
asked this question in
Q&A
-
We've added |
Beta Was this translation helpful? Give feedback.
Answered by
efenderbosch-atg
Aug 20, 2025
Replies: 1 comment 1 reply
-
Figured it out, but just by spelunking the code, doesn't seem to be documented anywhere. In timeout {
int timeoutSeconds = System.getenv('CI') ? 60 : 30
globalTimeout(Duration.ofSeconds(timeoutSeconds))
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
efenderbosch-atg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Figured it out, but just by spelunking the code, doesn't seem to be documented anywhere.
In
src/test/resources/SpockConfig.groovy
: