Skip to content

Commit

Permalink
fix: add the redis mark to appropriate test (#3174)
Browse files Browse the repository at this point in the history
* fix: add the redis mark to this shutdown test to make sure it has a redis service available

---------

Co-authored-by: Janek Nouvertné <[email protected]>
  • Loading branch information
euri10 and provinzkraut authored Mar 5, 2024
1 parent 63ef963 commit 1fb981d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit/test_stores.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1fb981d

Please sign in to comment.