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."""