From c46ab637e7151fde85df00c4a74b192bd4c2b087 Mon Sep 17 00:00:00 2001 From: anthony sottile <103459774+asottile-sentry@users.noreply.github.com> Date: Thu, 19 Sep 2024 09:11:38 -0400 Subject: [PATCH] ref: set relay fixture scope to module instead of session (#77703) this should be a reasonable balance between the current state (relay lasting for the whole session and causing flakiness) and function (setting up and tearing down the container continually) --- src/sentry/testutils/pytest/relay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sentry/testutils/pytest/relay.py b/src/sentry/testutils/pytest/relay.py index 072869dbf45db0..76dff65c2da813 100644 --- a/src/sentry/testutils/pytest/relay.py +++ b/src/sentry/testutils/pytest/relay.py @@ -47,7 +47,7 @@ def _remove_container_if_exists(docker_client, container_name): pass # could not remove the container nothing to do about it -@pytest.fixture(scope="session") +@pytest.fixture(scope="module") def relay_server_setup(live_server, tmpdir_factory): prefix = "test_relay_config_{}_".format( datetime.datetime.now().strftime("%Y-%m-%d_%H-%M-%S_%f")