aboutsummaryrefslogtreecommitdiffstats
path: root/test/pathod/test_pathod.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2016-06-02 18:10:36 +1200
committerAldo Cortesi <aldo@nullcube.com>2016-06-02 18:10:36 +1200
commit254614e9f77e108d186ff3f7e89ec78012af65a1 (patch)
tree878cad506234f96de482e65d58a85e28afac6da2 /test/pathod/test_pathod.py
parent40156ce123962a6d0e431761833a506ec5aeebb9 (diff)
downloadmitmproxy-254614e9f77e108d186ff3f7e89ec78012af65a1.tar.gz
mitmproxy-254614e9f77e108d186ff3f7e89ec78012af65a1.tar.bz2
mitmproxy-254614e9f77e108d186ff3f7e89ec78012af65a1.zip
Since we have locks over the logs, use direct access rather than API requests to get to them
Diffstat (limited to 'test/pathod/test_pathod.py')
-rw-r--r--test/pathod/test_pathod.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/pathod/test_pathod.py b/test/pathod/test_pathod.py
index 5773a3c9..9916984e 100644
--- a/test/pathod/test_pathod.py
+++ b/test/pathod/test_pathod.py
@@ -142,11 +142,10 @@ class CommonTests(tutils.DaemonTests):
assert tuple(self.d.info()["version"]) == version.IVERSION
def test_logs(self):
- assert self.d.clear_log()
- assert not self.d.last_log()
+ self.d.clear_log()
assert self.get("202:da")
- assert len(self.d.log()) == 1
- assert self.d.clear_log()
+ assert self.d.expect_log(1)
+ self.d.clear_log()
assert len(self.d.log()) == 0
def test_disconnect(self):