summaryrefslogtreecommitdiff
path: root/tests/api.py
diff options
context:
space:
mode:
authorpennae <github@quasiparticle.net>2022-07-18 17:12:52 +0200
committerpennae <github@quasiparticle.net>2022-07-18 17:12:52 +0200
commita89158377f829720a98342cf434a18b962006ee7 (patch)
tree680e35a2e8e3311d832da336df8cf625c7bf07a7 /tests/api.py
parenta4a929218528920c4ae525e2510562dd209f6b3a (diff)
downloadminor-skulk-a89158377f829720a98342cf434a18b962006ee7.tar.gz
minor-skulk-a89158377f829720a98342cf434a18b962006ee7.tar.xz
minor-skulk-a89158377f829720a98342cf434a18b962006ee7.zip
speed up test suite
mostly by grouping tests that can reuse the same account (which is expensive to create) into classes and scoping accounts to classes.
Diffstat (limited to 'tests/api.py')
-rw-r--r--tests/api.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/api.py b/tests/api.py
index 32e1159..da82d37 100644
--- a/tests/api.py
+++ b/tests/api.py
@@ -213,9 +213,9 @@ class PushServer:
server = self.server = http.server.ThreadingHTTPServer(("localhost", PUSH_PORT), Handler)
threading.Thread(target=server.serve_forever).start()
- def wait(self, timeout=2):
+ def wait(self, timeout=0.5):
return self.q.get(timeout=timeout)
- def done(self, timeout=2):
+ def done(self, timeout=0.5):
try:
self.q.get(timeout=timeout)
return False
@@ -249,5 +249,5 @@ class MailServer:
def stop(self):
self.controller.stop()
- def wait(self, timeout=2):
+ def wait(self, timeout=0.5):
return self.q.get(timeout=timeout)