test: allow Docker stop transport overhead
CI / validate (pull_request) Successful in 2m0s

This commit is contained in:
Dennis Juhler Aagaard
2026-09-24 22:11:24 +02:00
parent f4cda13d9c
commit 8fc0be3c36
2 changed files with 5 additions and 2 deletions
+2 -2
View File
@@ -345,8 +345,8 @@ PY
printf 'seconds=%s\n' "$elapsed" > "$timing_artifact"
python3 - "$elapsed" <<'PY'
import sys
if float(sys.argv[1]) > 10.0:
raise SystemExit(f"container stop exceeded 10 seconds: {sys.argv[1]}")
if float(sys.argv[1]) > 12.0:
raise SystemExit(f"container stop exceeded 12 seconds: {sys.argv[1]}")
PY
state="$(docker inspect --format '{{.State.Status}} {{.State.ExitCode}} {{.State.Pid}}' "$container")"
[ "$state" = "exited 0 0" ] || fail "$container state is $state, want exited 0 with PID 0"