Commit 445fdaf
committed
fix(tests): Add timeout to wait_for_ws in helper.bash
Adds a 60-second timeout to the `wait_for_ws` function in
`agent/test/helper.bash`.
Previously, this function could hang indefinitely in CI environments
if the web server failed to start but the monitored JVM process (e.g.,
Gradle wrapper) remained active. This commonly occurred when a forked
application server (like Tomcat via Gretty) crashed during startup.
With this change:
- The test will now fail explicitly after 60 seconds if the web service
at `WS_URL` is unreachable.
- Upon timeout or JVM failure, the content of the `$LOG` file will be
printed, providing crucial debugging information for CI failures.1 parent 89e0deb commit 445fdaf
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
165 | 168 | | |
166 | 169 | | |
167 | 170 | | |
| 171 | + | |
168 | 172 | | |
169 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
170 | 182 | | |
171 | 183 | | |
172 | 184 | | |
| |||
0 commit comments