Skip to content

Commit df73c7f

Browse files
committed
test: increase HTTP verify attempts from 10 to 60
Fixes #1403. With host networking the container port becomes reachable as soon as the process starts listening, before httpd is ready to serve requests. Unlike the bridge/veth tests there is no intervening network setup or must_reach() ping step to act as a startup buffer, so the race between httpd init and the first curl attempt is tight. Ten attempts (one per second) was not enough headroom; raise it to 60 to match the restart-verify step in the same test. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
1 parent a8b23cd commit df73c7f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/case/containers/basic/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def _verify(server, silent=False):
6161
until(lambda: c.running(NAME), attempts=60)
6262

6363
with test.step("Verify container 'web' is reachable on http://container-host.local:91"):
64-
until(lambda: _verify(addr, silent=True), attempts=10)
64+
until(lambda: _verify(addr, silent=True), attempts=60)
6565

6666
with test.step("Verify resource constraints and usage are available"):
6767
data = target.get_data("/infix-containers:containers")

0 commit comments

Comments
 (0)