tests: Increase some timeouts for OS X.
This commit is contained in:
parent
20e5c4cbe9
commit
fbf9c74752
@ -597,7 +597,8 @@ def test_timeout(qtbot, caplog, qlocalsocket, ipc_server):
|
|||||||
qlocalsocket.connectToServer('qute-test')
|
qlocalsocket.connectToServer('qute-test')
|
||||||
|
|
||||||
with caplog.atLevel(logging.ERROR):
|
with caplog.atLevel(logging.ERROR):
|
||||||
with qtbot.waitSignal(qlocalsocket.disconnected, raising=True):
|
with qtbot.waitSignal(qlocalsocket.disconnected, raising=True,
|
||||||
|
timeout=5000):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
assert caplog.records()[-1].message == "IPC connection timed out."
|
assert caplog.records()[-1].message == "IPC connection timed out."
|
||||||
|
@ -98,7 +98,7 @@ class TestLogTime:
|
|||||||
assert match
|
assert match
|
||||||
|
|
||||||
duration = float(match.group(1))
|
duration = float(match.group(1))
|
||||||
assert 0 < duration < 5
|
assert 0 < duration < 30
|
||||||
|
|
||||||
def test_logger(self, caplog):
|
def test_logger(self, caplog):
|
||||||
"""Test with an explicit logger instead of a name."""
|
"""Test with an explicit logger instead of a name."""
|
||||||
|
Loading…
Reference in New Issue
Block a user