Browse Source

reduce time out so tests run a bit faster... not sure what the best

way to test for this condition is...
tags/v0.1.0
John-Mark Gurney 5 years ago
parent
commit
27daaa0c36
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      ntunnel.py

+ 2
- 1
ntunnel.py View File

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


Loading…
Cancel
Save