Skip to content

Commit ed17770

Browse files
🐛 Fix failing opentelemetry unit test (#6927)
1 parent bf06671 commit ed17770

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

services/web/server/tests/unit/isolated/test_tracing.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@
1717
def mock_webserver_service_environment(
1818
monkeypatch: pytest.MonkeyPatch, mock_webserver_service_environment: EnvVarsDict
1919
) -> EnvVarsDict:
20-
21-
return mock_webserver_service_environment | setenvs_from_dict(
20+
monkeypatch.delenv("WEBSERVER_TRACING")
21+
envs = mock_webserver_service_environment | setenvs_from_dict(
2222
monkeypatch,
2323
{
2424
"TRACING_OPENTELEMETRY_COLLECTOR_ENDPOINT": "http://opentelemetry-collector",
2525
"TRACING_OPENTELEMETRY_COLLECTOR_PORT": "4318",
2626
},
2727
)
28+
return envs
2829

2930

3031
def test_middleware_restrictions_opentelemetry_is_second_middleware(

0 commit comments

Comments
 (0)