Permalink
Browse files

try and ensure timeout

  • Loading branch information...
1 parent 5dd411f commit 520c98da2d741a2632acc148881288771c222ad4 Graeme Rocher committed Apr 24, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 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
}

0 comments on commit 520c98d

Please sign in to comment.