diff --git a/test/test_helpers.py b/test/test_helpers.py index 2d0a0209f63c7cf1cc5e986f5210a59837cc6cbd..259423717f43ce26adc561e27f32271de4e9e897 100644 --- a/test/test_helpers.py +++ b/test/test_helpers.py @@ -168,8 +168,8 @@ class TestPrepareHost: with pytest.raises(OSError) as e: prepare_host() assert "unknown host 'NotExistingHostName'" in e.value.args[0] - mock_host.return_value = "linux-gzsx" if "runner-6HmDp9Qd-project-2411-concurrent" not in socket.gethostname(): + mock_host.return_value = "linux-gzsx" with pytest.raises(NotADirectoryError) as e: prepare_host() assert "does not exist for host 'linux-gzsx'" in e.value.args[0]