Skip to content

Commit

Permalink
πŸ› Fix failing opentelemetry unit test (ITISFoundation#6927)
Browse files Browse the repository at this point in the history
  • Loading branch information
matusdrobuliak66 authored Dec 9, 2024
1 parent bf06671 commit ed17770
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions services/web/server/tests/unit/isolated/test_tracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@
def mock_webserver_service_environment(
monkeypatch: pytest.MonkeyPatch, mock_webserver_service_environment: EnvVarsDict
) -> EnvVarsDict:

return mock_webserver_service_environment | setenvs_from_dict(
monkeypatch.delenv("WEBSERVER_TRACING")
envs = mock_webserver_service_environment | setenvs_from_dict(
monkeypatch,
{
"TRACING_OPENTELEMETRY_COLLECTOR_ENDPOINT": "http://opentelemetry-collector",
"TRACING_OPENTELEMETRY_COLLECTOR_PORT": "4318",
},
)
return envs


def test_middleware_restrictions_opentelemetry_is_second_middleware(
Expand Down

0 comments on commit ed17770

Please sign in to comment.