From 0a8665a0875e007d884202bed1927daafcf2e8bc Mon Sep 17 00:00:00 2001 From: Ryan Williams Date: Wed, 24 Feb 2010 13:22:01 -0500 Subject: [PATCH] Closing the backdoor client socket closes the waiting server, yay. --- tests/backdoor_test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/backdoor_test.py b/tests/backdoor_test.py index 44a6c5a..345cbad 100644 --- a/tests/backdoor_test.py +++ b/tests/backdoor_test.py @@ -22,6 +22,11 @@ class BackdoorTest(LimitedTestCase): f.flush() self.assertEquals('hi\n', f.readline()) self.assertEquals('>>> ', f.read(4)) + f.close() + client.close() + serv.kill() + # wait for the console to discover that it's dead + eventlet.sleep(0.1)