Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
lolgab committed Jan 13, 2025
1 parent d10922e commit a1d9f94
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ object SNUnitMillPluginTests extends TestSuite {
ended.set(true)
}
var started = false
while (!started && !ended.get()) {
while (!started || !ended.get()) {
try {
val response = requests.get("http://127.0.0.1:8080", check = false).text()
started = true
Expand All @@ -35,6 +35,9 @@ object SNUnitMillPluginTests extends TestSuite {
Thread.sleep(5000)
}
}
if (ended.get()) {
sys.error("NGINX Unit failed to run")
}
eval(build.snunitKillNGINXUnit())
}
}
Expand Down

0 comments on commit a1d9f94

Please sign in to comment.