Skip to content

Commit be2d948

Browse files
committed
Renane otelcollector to mock_otelcol.
1 parent 19963f8 commit be2d948

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
pytest_plugins = [
11-
"otelcol_fixtures",
11+
"mock_fixtures",
1212
]
1313

1414
NGINX = os.getenv("TEST_NGINX_BINARY", "../nginx/objs/nginx")

tests/otelcol_fixtures.py renamed to tests/mock_fixtures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def clear():
2424

2525

2626
@pytest.fixture(scope="module")
27-
def _otelcollector(logger):
27+
def _mock_otelcol(logger):
2828
server = grpc.server(futures.ThreadPoolExecutor(max_workers=10))
2929
trace_service_pb2_grpc.add_TraceServiceServicer_to_server(
3030
TraceService(), server

tests/test_otel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def response(logger, http_ver, otel_mode, url, headers):
208208
return resp.text
209209

210210

211-
@pytest.mark.usefixtures("_otelcollector", "_otelcol", "nginx")
211+
@pytest.mark.usefixtures("_mock_otelcol", "_otelcol", "nginx")
212212
@pytest.mark.parametrize(
213213
("nginx_config", "http_ver", "otel_mode"),
214214
[

0 commit comments

Comments
 (0)