aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_console.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2011-08-01 11:17:01 +1200
committerAldo Cortesi <aldo@nullcube.com>2011-08-01 11:17:01 +1200
commit43f1c72511e3f68172ea16f742506693b8feff4c (patch)
treea7f3afdd7ea9131f463d9586c25bdd66f17f6051 /test/test_console.py
parentddb5748a76725ea6a6c6bb58e13b7b8ca09e147b (diff)
downloadmitmproxy-43f1c72511e3f68172ea16f742506693b8feff4c.tar.gz
mitmproxy-43f1c72511e3f68172ea16f742506693b8feff4c.tar.bz2
mitmproxy-43f1c72511e3f68172ea16f742506693b8feff4c.zip
Refactor the way we calculate views of the flow list.
The naive approach we used before recalculated the view on every access, and consequently had serious performance problems.
Diffstat (limited to 'test/test_console.py')
-rw-r--r--test/test_console.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_console.py b/test/test_console.py
index 6040763a..f0c939ed 100644
--- a/test/test_console.py
+++ b/test/test_console.py
@@ -12,7 +12,7 @@ class uState(libpry.AutoTree):
"""
c = console.ConsoleState()
f = self._add_request(c)
- assert f.request in c.flow_map
+ assert f.request in c._flow_map
assert c.get_focus() == (f, 0)
def test_focus(self):