From fbf9c7475236c89807b99d9ac9370872df37f30f Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 17 Sep 2015 21:22:35 +0200 Subject: [PATCH] tests: Increase some timeouts for OS X. --- tests/unit/misc/test_ipc.py | 3 ++- tests/unit/utils/test_debug.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/unit/misc/test_ipc.py b/tests/unit/misc/test_ipc.py index 26da7c768..8c39cc8b9 100644 --- a/tests/unit/misc/test_ipc.py +++ b/tests/unit/misc/test_ipc.py @@ -597,7 +597,8 @@ def test_timeout(qtbot, caplog, qlocalsocket, ipc_server): qlocalsocket.connectToServer('qute-test') with caplog.atLevel(logging.ERROR): - with qtbot.waitSignal(qlocalsocket.disconnected, raising=True): + with qtbot.waitSignal(qlocalsocket.disconnected, raising=True, + timeout=5000): pass assert caplog.records()[-1].message == "IPC connection timed out." diff --git a/tests/unit/utils/test_debug.py b/tests/unit/utils/test_debug.py index f1cf7e1e4..94c03c2d1 100644 --- a/tests/unit/utils/test_debug.py +++ b/tests/unit/utils/test_debug.py @@ -98,7 +98,7 @@ class TestLogTime: assert match duration = float(match.group(1)) - assert 0 < duration < 5 + assert 0 < duration < 30 def test_logger(self, caplog): """Test with an explicit logger instead of a name."""