From 3e158211a830bbcba2dd463189a79ec3ad17c8d4 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Thu, 26 Jul 2012 20:01:51 +1200 Subject: Add a --nohang flag that turns off pauses in response generation. --- test/test_pathod.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/test_pathod.py') diff --git a/test/test_pathod.py b/test/test_pathod.py index 036fbf0b..d6e2e886 100644 --- a/test/test_pathod.py +++ b/test/test_pathod.py @@ -43,6 +43,15 @@ class TestNoApi(tutils.DaemonTests): assert not "Log" in r.content +class TestNohang(tutils.DaemonTests): + nohang = True + def test_nohang(self): + r = self.get("200:p0,0") + assert r.status_code == 800 + l = self.d.log()[0] + assert "Pauses have been disabled" in l["response"]["error"] + + class CommonTests(tutils.DaemonTests): def test_sizelimit(self): r = self.get("200:b@1g") -- cgit v1.2.3