aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/test_protocol_http2.py3
-rw-r--r--test/mitmproxy/tservers.py3
2 files changed, 2 insertions, 4 deletions
diff --git a/test/mitmproxy/test_protocol_http2.py b/test/mitmproxy/test_protocol_http2.py
index dd81ba23..34e6656a 100644
--- a/test/mitmproxy/test_protocol_http2.py
+++ b/test/mitmproxy/test_protocol_http2.py
@@ -105,10 +105,9 @@ class _Http2TestBase(object):
@classmethod
def get_proxy_config(cls):
opts = options.Options(listen_port=0)
- cls.cadir = os.path.join(tempfile.gettempdir(), "mitmproxy")
+ opts.cadir = os.path.join(tempfile.gettempdir(), "mitmproxy")
d = dict(
no_upstream_cert=False,
- cadir=cls.cadir,
authenticator=None,
)
return d, opts
diff --git a/test/mitmproxy/tservers.py b/test/mitmproxy/tservers.py
index f9e1925f..ddb2922a 100644
--- a/test/mitmproxy/tservers.py
+++ b/test/mitmproxy/tservers.py
@@ -122,11 +122,10 @@ class ProxyTestBase(object):
cls.cadir = os.path.join(tempfile.gettempdir(), "mitmproxy")
cnf = dict(
no_upstream_cert = cls.no_upstream_cert,
- cadir = cls.cadir,
authenticator = cls.authenticator,
add_upstream_certs_to_client_chain = cls.add_upstream_certs_to_client_chain,
)
- return cnf, options.Options(listen_port=0)
+ return cnf, options.Options(listen_port=0, cadir=cls.cadir)
class HTTPProxyTest(ProxyTestBase):