aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_pathod.py9
-rw-r--r--test/tutils.py4
2 files changed, 12 insertions, 1 deletions
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")
diff --git a/test/tutils.py b/test/tutils.py
index 1eb78980..d9e543a1 100644
--- a/test/tutils.py
+++ b/test/tutils.py
@@ -6,6 +6,7 @@ import requests
class DaemonTests:
noweb = False
noapi = False
+ nohang = False
ssl = False
@classmethod
def setUpAll(self):
@@ -15,7 +16,8 @@ class DaemonTests:
ssl = self.ssl,
sizelimit=1*1024*1024,
noweb = self.noweb,
- noapi = self.noapi
+ noapi = self.noapi,
+ nohang = self.nohang
)
@classmethod