aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2016-05-11 16:34:18 -0600
committerMaximilian Hils <git@maximilianhils.com>2016-05-19 22:07:56 -0700
commitd3c30d9005e42a68cb3f5a5440f30f01f100cbec (patch)
tree3c2d9de138e8770e87d1d8e030934310d5f286a0 /test
parentacd51befbb89f28397f8e3e52ead5bfa11fdc93f (diff)
downloadmitmproxy-d3c30d9005e42a68cb3f5a5440f30f01f100cbec.tar.gz
mitmproxy-d3c30d9005e42a68cb3f5a5440f30f01f100cbec.tar.bz2
mitmproxy-d3c30d9005e42a68cb3f5a5440f30f01f100cbec.zip
fix tests, don't double-add error'd flows
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/tservers.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/mitmproxy/tservers.py b/test/mitmproxy/tservers.py
index c9d68cfd..a1e9c713 100644
--- a/test/mitmproxy/tservers.py
+++ b/test/mitmproxy/tservers.py
@@ -161,7 +161,9 @@ class HTTPProxyTest(ProxyTestBase):
q = "get:'/p/%s'" % spec
else:
q = "get:'%s/p/%s'" % (self.server.urlbase, spec)
- return p.request(q)
+ resp = p.request(q)
+ p.close()
+ return resp
def app(self, page):
if self.ssl: