From 1fb981da4b6171cd3fa348c9ffe1c575c5bc862f Mon Sep 17 00:00:00 2001 From: euri10 Date: Tue, 5 Mar 2024 19:15:25 +0100 Subject: [PATCH] fix: add the redis mark to appropriate test (#3174) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: add the redis mark to this shutdown test to make sure it has a redis service available --------- Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --- tests/unit/test_stores.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/unit/test_stores.py b/tests/unit/test_stores.py index c8178996bc..e09ffa6391 100644 --- a/tests/unit/test_stores.py +++ b/tests/unit/test_stores.py @@ -368,7 +368,8 @@ async def test_file_store_handle_rename_fail(file_store: FileStore, mocker: Mock assert Path(mock_unlink.call_args_list[0].args[0]).with_suffix("") == file_store.path.joinpath("foo") -async def test_redis_store_with_client_shutdown() -> None: +@pytest.mark.xdist_group("redis") +async def test_redis_store_with_client_shutdown(redis_service: None) -> None: redis_store = RedisStore.with_client(url="redis://localhost:6397") assert await redis_store._redis.ping() # remove the private shutdown and the assert below fails