diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2011-08-01 11:17:01 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2011-08-01 11:17:01 +1200 |
commit | 43f1c72511e3f68172ea16f742506693b8feff4c (patch) | |
tree | a7f3afdd7ea9131f463d9586c25bdd66f17f6051 /test/test_console.py | |
parent | ddb5748a76725ea6a6c6bb58e13b7b8ca09e147b (diff) | |
download | mitmproxy-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.py | 2 |
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): |