From f64ef5c2b79db51c02c28075786dba203a07870f Mon Sep 17 00:00:00 2001 From: Joan Martinez Date: Thu, 7 Nov 2024 15:53:50 +0100 Subject: [PATCH] test: fix k8s otel test --- Dockerfiles/pip.Dockerfile | 2 +- Dockerfiles/test-pip.Dockerfile | 2 +- tests/k8s_otel/test_k8s_instrumentation.py | 7 ++----- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Dockerfiles/pip.Dockerfile b/Dockerfiles/pip.Dockerfile index 46a97c9ffe889..7172c449b29a8 100644 --- a/Dockerfiles/pip.Dockerfile +++ b/Dockerfiles/pip.Dockerfile @@ -1,4 +1,4 @@ -ARG PY_VERSION=3.7 +ARG PY_VERSION=3.8 ARG PIP_TAG FROM python:${PY_VERSION}-slim diff --git a/Dockerfiles/test-pip.Dockerfile b/Dockerfiles/test-pip.Dockerfile index 15bedd5b0ac28..43a1124990501 100644 --- a/Dockerfiles/test-pip.Dockerfile +++ b/Dockerfiles/test-pip.Dockerfile @@ -1,4 +1,4 @@ -ARG PY_VERSION=3.7 +ARG PY_VERSION=3.8 FROM python:${PY_VERSION}-slim diff --git a/tests/k8s_otel/test_k8s_instrumentation.py b/tests/k8s_otel/test_k8s_instrumentation.py index 4050f6ed54d19..7f857fbc38bd8 100644 --- a/tests/k8s_otel/test_k8s_instrumentation.py +++ b/tests/k8s_otel/test_k8s_instrumentation.py @@ -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