Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

try and ensure timeout

  • Loading branch information...
commit 520c98da2d741a2632acc148881288771c222ad4 1 parent 5dd411f
Graeme Rocher authored
6 src/test/groovy/grails/functional/tests/internal/GrailsExecutor.groovy
@@ -60,10 +60,7 @@ class GrailsExecutor {
60 60 int timeout = 0
61 61
62 62 def timeoutMax = 1000 * 60 * 5 // 5 mins
63   - while (true) {
64   - if (timeout > timeoutMax) {
65   - onFailure()
66   - }
  63 + while (timeout > timeoutMax) {
67 64 if (Utils.isServerRunningOnPort(port)) {
68 65 onSuccess()
69 66 break
@@ -73,6 +70,7 @@ class GrailsExecutor {
73 70 sleep(100)
74 71 }
75 72 }
  73 + onFailure()
76 74 return timeout
77 75 }
78 76

0 comments on commit 520c98d

Please sign in to comment.
Something went wrong with that request. Please try again.