Skip to content

Commit

Permalink
ref: set relay fixture scope to module instead of session (#77703)
Browse files Browse the repository at this point in the history
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)

<!-- Describe your PR here. -->
  • Loading branch information
asottile-sentry authored and harshithadurai committed Sep 19, 2024
1 parent ff74200 commit fbb0322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sentry/testutils/pytest/relay.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit fbb0322

Please sign in to comment.