Commit 2307b0cdea for bind
commit 2307b0cdea7cb385181e88f60f1bc8a106d57849
Author: Nicki Křížek <nicki@isc.org>
Date: Fri Oct 23 09:33:33 2026 +0000
Re-raise exceptions from the stress test worker threads
An exception ends a task, which then counts as done, so neither the
reload loop nor a failed update assertion in update_zone() could fail
the test.
Assisted-by: Claude:claude-opus-5-5
diff --git a/bin/tests/system/stress/tests_stress_update.py b/bin/tests/system/stress/tests_stress_update.py
index 10a5b59899..857a1c5080 100644
--- a/bin/tests/system/stress/tests_stress_update.py
+++ b/bin/tests/system/stress/tests_stress_update.py
@@ -56,7 +56,7 @@ def test_update_stress(ns3):
test_state = {"finished": False}
with concurrent.futures.ThreadPoolExecutor() as executor:
- executor.submit(rndc_loop, test_state, ns3)
+ reloader = executor.submit(rndc_loop, test_state, ns3)
updaters = []
for i in range(5):
@@ -73,3 +73,7 @@ def test_update_stress(ns3):
test_state["finished"] = True
assert not unfinished_tasks
+
+ # Re-raise any exception that ended a task early.
+ for task in [reloader] + updaters:
+ task.result()