From 064929b559fffb2572b2213c00e82e6fa3e69ef6 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Fri, 18 May 2018 08:46:56 +1200 Subject: [PATCH] clientreplay: fix racy tests harder --- test/mitmproxy/addons/test_clientplayback.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/mitmproxy/addons/test_clientplayback.py b/test/mitmproxy/addons/test_clientplayback.py index 8a160f0d0..1929ee3d0 100644 --- a/test/mitmproxy/addons/test_clientplayback.py +++ b/test/mitmproxy/addons/test_clientplayback.py @@ -57,6 +57,9 @@ class TBase(tservers.HTTPProxyTest): assert l.response.status_code == 304 l.request.path = "/p/305" l.response = None + l.live = False + l.intercepted = False + cr.start_replay([l]) self.wait_response(l) assert l.response.status_code == 305