From ace286f6d7836cd03f54aeff9e433e16f21ebe87 Mon Sep 17 00:00:00 2001 From: shdann <28006689+shdann@users.noreply.github.com> Date: Mon, 23 Nov 2026 00:09:24 +0300 Subject: [PATCH] tests: the restart test asserts the server thread stopped after shutdown A join with a timeout returns either way, so a stalled shutdown would have passed and left the thread running (review of #3502). Co-Authored-By: Claude Fable 5.2 --- tests/test_viewer_serve.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_viewer_serve.py b/tests/test_viewer_serve.py index 5133c935a..319bad5ff 100644 --- a/tests/test_viewer_serve.py +++ b/tests/test_viewer_serve.py @@ -399,6 +399,7 @@ class PortArgumentTest(unittest.TestCase): server.shutdown() server.server_close() thread.join(10) + self.assertFalse(thread.is_alive(), "the server thread is still running after shutdown()") @unittest.skipIf(os.name == "nt", "sends SIGINT, which a Windows child started this way does not get") def test_ctrl_c_stops_the_viewer_without_a_traceback(self):