server: pass handler and add debug option

This commit is contained in:
Roman Zeyde
2016-01-26 21:14:52 +02:00
parent 50b627ed45
commit cafa218e19
3 changed files with 11 additions and 9 deletions

View File

@@ -101,7 +101,8 @@ def test_run():
def test_serve_main():
with server.serve(public_keys=[], signer=None, sock_path=None):
handler = protocol.Handler(keys=[], signer=None)
with server.serve(handler=handler, sock_path=None):
pass