|
|
@@ -561,9 +561,10 @@ class TestMain(unittest.TestCase): |
|
|
|
# Connect to the client |
|
|
|
reader, writer = await connectsockstr(ptclientstr) |
|
|
|
|
|
|
|
# XXX - this might not be the best test. |
|
|
|
with self.assertRaises(asyncio.futures.TimeoutError): |
|
|
|
# make sure that we don't get the conenction |
|
|
|
await asyncio.wait_for(ptsockevent.wait(), 1) |
|
|
|
await asyncio.wait_for(ptsockevent.wait(), .5) |
|
|
|
|
|
|
|
# Make sure that when the server is terminated |
|
|
|
server.terminate() |
|
|
|