Skip to content

Commit 5921b08

Browse files
committed
Mark telemetry e2e tests as serial - must not run in parallel
The concurrent telemetry e2e test globally patches telemetry methods to capture events. When run in parallel with other tests via pytest-xdist, it captures telemetry events from other concurrent tests, causing assertion failures (expected 60 events, got 88). All telemetry e2e tests must run serially to avoid cross-test interference with the shared host-level telemetry client.
1 parent 98aa382 commit 5921b08

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/e2e/test_concurrent_telemetry.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def run_in_threads(target, num_threads, pass_index=False):
2626
t.join()
2727

2828

29+
@pytest.mark.serial
2930
class TestE2ETelemetry(PySQLPytestTestCase):
3031
@pytest.fixture(autouse=True)
3132
def telemetry_setup_teardown(self):

0 commit comments

Comments
 (0)