diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2011-03-15 17:21:35 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2011-03-15 17:21:35 +1300 |
commit | 6d5c32ad4b6078a72b73b695981faec36ef917c0 (patch) | |
tree | cc19a507899bcd25905a325d9a6f08e47130291c /test | |
parent | fb28e71f0b1beb68723a2d89e008793325cee715 (diff) | |
download | mitmproxy-6d5c32ad4b6078a72b73b695981faec36ef917c0.tar.gz mitmproxy-6d5c32ad4b6078a72b73b695981faec36ef917c0.tar.bz2 mitmproxy-6d5c32ad4b6078a72b73b695981faec36ef917c0.zip |
Fix hang on shutdown.
Diffstat (limited to 'test')
-rw-r--r-- | test/test_flow.py | 4 | ||||
-rw-r--r-- | test/tutils.py | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/test/test_flow.py b/test/test_flow.py index 91e3f5f4..a3fa48d7 100644 --- a/test/test_flow.py +++ b/test/test_flow.py @@ -1,6 +1,6 @@ import Queue from cStringIO import StringIO -from libmproxy import console, proxy, filt, flow +from libmproxy import console, proxy, filt, flow, controller import tutils import libpry @@ -442,7 +442,7 @@ class uFlowMaster(libpry.AutoTree): assert fm.do_server_playback(tutils.tflow()) q = Queue.Queue() fm.tick(q) - assert fm._shutdown + assert controller.exit def test_stickycookie(self): s = flow.State() diff --git a/test/tutils.py b/test/tutils.py index ec2c71a8..ae9dea27 100644 --- a/test/tutils.py +++ b/test/tutils.py @@ -59,6 +59,7 @@ class TestMaster(controller.Master): class ProxyThread(threading.Thread): def __init__(self, port, testq): self.tmaster = TestMaster(port, testq) + controller.exit = False threading.Thread.__init__(self) def run(self): |