Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

try and ensure timeout

  • Loading branch information...
commit 520c98da2d741a2632acc148881288771c222ad4 1 parent 5dd411f
Graeme Rocher authored
View
6 src/test/groovy/grails/functional/tests/internal/GrailsExecutor.groovy
@@ -60,10 +60,7 @@ class GrailsExecutor {
int timeout = 0
def timeoutMax = 1000 * 60 * 5 // 5 mins
- while (true) {
- if (timeout > timeoutMax) {
- onFailure()
- }
+ while (timeout > timeoutMax) {
if (Utils.isServerRunningOnPort(port)) {
onSuccess()
break
@@ -73,6 +70,7 @@ class GrailsExecutor {
sleep(100)
}
}
+ onFailure()
return timeout
}
Please sign in to comment.
Something went wrong with that request. Please try again.