mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 19:58:36 +00:00
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:
@ -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):
|
||||
|
||||
Reference in New Issue
Block a user