diff --git a/tests/system_tests/test_blueapi_system.py b/tests/system_tests/test_blueapi_system.py index 8faa7be83..85ead2759 100644 --- a/tests/system_tests/test_blueapi_system.py +++ b/tests/system_tests/test_blueapi_system.py @@ -260,11 +260,16 @@ def test_get_current_state_of_environment(client: BlueapiClient): assert client.get_environment() == EnvironmentResponse(initialized=True) -@disable_side_effects +@pytest.xfail( + reason=""" + client.reload_environment does not currently wait for the environment to fully + reload This causes the test to fail intermittently. + More details can be found in the related issue: https://github.com/DiamondLightSource/blueapi/issues/742. + """ +) def test_delete_current_environment(client: BlueapiClient): client.reload_environment() - # This should be removed after this issue is resolved https://github.com/DiamondLightSource/blueapi/issues/742 time.sleep(1) @backoff.on_predicate(