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 <noreply@anthropic.com>
This commit is contained in:
shdann
2026-11-23 00:09:24 +03:00
parent f0bdc5789b
commit ace286f6d7

View File

@ -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):