From 00c88c588e7602a32da03f4c081f5daa1e471c7d Mon Sep 17 00:00:00 2001 From: Hermes Date: Tue, 17 Nov 2026 20:42:38 +0000 Subject: [PATCH] tests: auf den Cooldown-Stub warten statt 0,3 s zu schlafen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Unter Last war der Stub auf PORT+231 noch nicht bereit; die erste Anfrage lief dann in connection refused (offline) statt in den Retry-After-Cooldown. wait_port macht den Test lastunabhängig. --- tests/retry-after.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/retry-after.sh b/tests/retry-after.sh index 79e0dda..ad4079e 100755 --- a/tests/retry-after.sh +++ b/tests/retry-after.sh @@ -144,7 +144,7 @@ RBS=$((PORT+231)) STUB_STATE="$TMP/rab.state" tests/stub $RBS "RAB" --fail-n 100 --retry-after 30 \ > "$TMP/rab_stub.log" 2>&1 & PIDS+=($!) -sleep 0.3 +wait_port "$RBS" 10 || bad "the cooldown stub did not come up" cat > "$TMP/rab.conf" <