From 92dd9afb0a49a9219c39297ed532c09123e94bb4 Mon Sep 17 00:00:00 2001 From: Peter Holloway Date: Tue, 4 Aug 2026 12:07:07 +0100 Subject: [PATCH] test: Shrink the spec-scan used in system tests The test still covers all the same code paths but running a smaller scan with the simulated motors takes much less time. As this is one of the longest tests in the system test suite, the runtime is reduced significantly. On this machine, the run time drops from ~1m to ~15s. --- tests/system_tests/test_blueapi_system.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/system_tests/test_blueapi_system.py b/tests/system_tests/test_blueapi_system.py index 8e2f5e528d..86c38812a0 100644 --- a/tests/system_tests/test_blueapi_system.py +++ b/tests/system_tests/test_blueapi_system.py @@ -541,7 +541,7 @@ def test_delete_current_environment(client: BlueapiClient): "detectors": [ "det", ], - "num": 5, + "num": 3, }, instrument_session=VALID_INSTRUMENT_SESSION[User.alice], ), @@ -557,14 +557,14 @@ def test_delete_current_environment(client: BlueapiClient): "outer": { "axis": "stage.x", "start": 0.0, - "stop": 10.0, + "stop": 0.4, "num": 2, "type": "Linspace", }, "inner": { "axis": "stage.theta", "start": 5.0, - "stop": 15.0, + "stop": 5.3, "num": 3, "type": "Linspace", }, @@ -634,7 +634,7 @@ def on_event(event: AnyEvent) -> None: name="set_absolute", params={ "movable": "stage.x", - "value": 4.0, + "value": 1.0, }, instrument_session=VALID_INSTRUMENT_SESSION[User.alice], ),