Browse Source

clean up the tests better, shame there isn't a context handler for processes...

tags/v0.1.0
John-Mark Gurney 5 years ago
parent
commit
acb6eac238
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      ntunnel.py

+ 11
- 0
ntunnel.py View File

@@ -779,6 +779,13 @@ class TestMain(unittest.TestCase):
lsock.close()
await lsock.wait_closed()

# Kill off the client
client.terminate()

stdout, stderr = await client.communicate()
#print('s:', repr((stdout, stderr)))
# XXX - figure out how to clean up client properly

@async_test
async def test_end2end(self):
# Generate necessar keys
@@ -862,6 +869,10 @@ class TestMain(unittest.TestCase):
lsock.close()
await lsock.wait_closed()

server.terminate()
client.terminate()
# XXX - more clean up testing

@async_test
async def test_genkey(self):
# that it can generate a key


Loading…
Cancel
Save