fix tests

This commit is contained in:
Maximilian Hils 2016-09-24 18:28:30 -07:00
parent 6f86741574
commit de65aebfdf

View File

@ -48,7 +48,7 @@ class DumpMaster(flow.FlowMaster):
self.options = self.options # type: Options self.options = self.options # type: Options
self.set_stream_large_bodies(options.stream_large_bodies) self.set_stream_large_bodies(options.stream_large_bodies)
if not self.options.no_server: if not self.options.no_server and server:
print("Proxy server listening at http://{}".format(server.address)) print("Proxy server listening at http://{}".format(server.address))
if self.server and self.options.http2 and not tcp.HAS_ALPN: # pragma: no cover if self.server and self.options.http2 and not tcp.HAS_ALPN: # pragma: no cover