Skip to content

Commit 211bdcd

Browse files
jonathan-eqxjules
authored andcommitted
Fix flaky test 'test_that_terminating_experiment_shows_a_confirmation_dialog'
(cherry picked from commit 4d46eaf)
1 parent b342978 commit 211bdcd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/ert/unit_tests/gui/simulation/test_run_dialog.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ def test_that_terminating_experiment_shows_a_confirmation_dialog(
157157
monkeypatch.setattr(Job, "WAIT_PERIOD_FOR_TERM_MESSAGE_TO_CANCEL", 0)
158158
kill_button = run_dialog.kill_button
159159
with qtbot.waitSignal(run_dialog.simulation_done, timeout=10000):
160+
# Wait for ensemble to start evaluating before cancelling
161+
_ = wait_for_child(run_dialog, qtbot, RealizationWidget)
160162

161163
def handle_dialog():
162164
terminate_dialog = wait_for_child(run_dialog, qtbot, QMessageBox)

0 commit comments

Comments
 (0)