Skip to content

Commit 9b5580b

Browse files
committed
Fix test_missing_runpath_has_isolated_failures
1 parent bbf3b61 commit 9b5580b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

tests/ert/ui_tests/gui/test_missing_runpath.py

+7-4
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ def test_missing_runpath_has_isolated_failures(
5555
monkeypatch.chdir(tmp_path)
5656
write_config(tmp_path, "LOCAL")
5757

58-
def handle_message_box(run_dialog):
58+
def handle_message_box(dialog):
5959
def inner():
6060
qtbot.waitUntil(
61-
lambda: run_dialog.fail_msg_box is not None,
61+
lambda: dialog.fail_msg_box is not None,
6262
timeout=20000,
6363
)
6464

65-
message_box = run_dialog.fail_msg_box
65+
message_box = dialog.fail_msg_box
6666
assert message_box is not None
6767
assert message_box.label_text.text() == "ERT experiment failed!"
6868
message_box.accept()
@@ -76,7 +76,10 @@ def inner():
7676
run_dialog = wait_for_child(gui, qtbot, RunDialog, timeout=10000)
7777

7878
QTimer.singleShot(100, handle_message_box(run_dialog))
79-
qtbot.waitUntil(run_dialog.done_button.isVisible, timeout=200000)
79+
qtbot.waitUntil(
80+
lambda dialog=run_dialog: not dialog.done_button.isHidden(),
81+
timeout=200000,
82+
)
8083
assert (
8184
"9/10"
8285
in run_dialog._progress_widget.findChild(

0 commit comments

Comments
 (0)