diff --git a/tests/system/shared/editor_utils.py b/tests/system/shared/editor_utils.py index e4ed6209b73bcf8e4a0e45a2d1c0b8ef307a1d4d..1a1730c053d427dc0339e7e7a588329a0c379316 100644 --- a/tests/system/shared/editor_utils.py +++ b/tests/system/shared/editor_utils.py @@ -324,10 +324,9 @@ def validateSearchResult(expectedCount): rect = resultTreeView.visualRect(chIndex) doubleClick(resultTreeView, rect.x+5, rect.y+5, 0, Qt.LeftButton) editor = getEditorForFileSuffix(itemText) - timeout = 2000 - if platform.system() == "Darwin": - timeout *= 2 - waitFor("lineUnderCursor(editor) == text", timeout) + if not waitFor("lineUnderCursor(editor) == text", 2000): + test.warning("Jumping to search result '%s' is pretty slow." % text) + waitFor("lineUnderCursor(editor) == text", 2000) test.compare(lineUnderCursor(editor), text) # this function invokes context menu and command from it