Skip to content

Commit

Permalink
test: fix k8s otel test
Browse files Browse the repository at this point in the history
  • Loading branch information
JoanFM committed Nov 7, 2024
1 parent 42211b8 commit f64ef5c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfiles/pip.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG PY_VERSION=3.7
ARG PY_VERSION=3.8
ARG PIP_TAG

FROM python:${PY_VERSION}-slim
Expand Down
2 changes: 1 addition & 1 deletion Dockerfiles/test-pip.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG PY_VERSION=3.7
ARG PY_VERSION=3.8

FROM python:${PY_VERSION}-slim

Expand Down
7 changes: 2 additions & 5 deletions tests/k8s_otel/test_k8s_instrumentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,9 @@ async def test_flow_resource_labeling(
res = []
async for docs in Client(port=gateway_port, asyncio=True).post("/"):
res.extend(docs)

[docs async for docs in Client(port=gateway_port, asyncio=True).post("/")]

# Give grace period for metrics and traces to be exported
# # Give grace period for metrics and traces to be exported
await asyncio.sleep(60)

#
# Check Jaeger API
with k8s_cluster_v2.port_forward(
'svc/jaeger', otel_test_namespace, svc_port=16686
Expand Down

0 comments on commit f64ef5c

Please sign in to comment.