From 71e3f599a61b29cbc050554d09efeb62ed1e2901 Mon Sep 17 00:00:00 2001
From: Tim Pillinger <26465611+wxtim@users.noreply.github.com>
Date: Thu, 16 Jan 2025 10:20:31 +0000
Subject: [PATCH] fixed a broken test
fixed TUI test
fix a broken functional test
---
tests/flakyfunctional/cylc-show/00-simple.t | 5 ++++-
tests/integration/run_modes/test_nonlive.py | 2 +-
tests/integration/tui/screenshots/test_show.success.html | 2 +-
3 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/tests/flakyfunctional/cylc-show/00-simple.t b/tests/flakyfunctional/cylc-show/00-simple.t
index d0a700dd86..471515de6b 100644
--- a/tests/flakyfunctional/cylc-show/00-simple.t
+++ b/tests/flakyfunctional/cylc-show/00-simple.t
@@ -113,7 +113,10 @@ cmp_json "${TEST_NAME}-taskinstance" "${TEST_NAME}-taskinstance" \
}
}
},
- "runtime": {"completion": "(started and succeeded)"},
+ "runtime": {
+ "completion": "(started and succeeded)",
+ "runMode": "Live"
+ },
"prerequisites": [
{
"expression": "0",
diff --git a/tests/integration/run_modes/test_nonlive.py b/tests/integration/run_modes/test_nonlive.py
index 90cefbf770..a8d2abeb0c 100644
--- a/tests/integration/run_modes/test_nonlive.py
+++ b/tests/integration/run_modes/test_nonlive.py
@@ -95,7 +95,7 @@ async def test_db_task_jobs(
'R1': '&'.join(KGO)}},
'runtime': {
mode: {'run mode': mode} for mode in KGO}
- }))
+ }), run_mode='live')
async with start(schd):
# Reference all task proxies so we can examine them
# at the end of the test:
diff --git a/tests/integration/tui/screenshots/test_show.success.html b/tests/integration/tui/screenshots/test_show.success.html
index 7f1caebe49..d3e2e30c8a 100644
--- a/tests/integration/tui/screenshots/test_show.success.html
+++ b/tests/integration/tui/screenshots/test_show.success.html
@@ -13,7 +13,7 @@
│ description: The first metasyntactic │
│ variable. │
│ URL: (not given) │
- │ state: waiting (queued) │
+ │ state: waiting (queued,run mode=Simulation) │
│ prerequisites: (None) │
│ outputs: ('⨯': not completed) │
│ ⨯ 1/foo expired │