From 32a63f08815bb0a92eb2c4f693dc8d7522267fd4 Mon Sep 17 00:00:00 2001 From: Diego Hurtado Date: Wed, 3 Jul 2024 13:37:03 -0600 Subject: [PATCH] One last attempt with a forced delay --- opentelemetry-sdk/tests/trace/export/test_export.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/opentelemetry-sdk/tests/trace/export/test_export.py b/opentelemetry-sdk/tests/trace/export/test_export.py index 52bc071204b..5cde9ec9e96 100644 --- a/opentelemetry-sdk/tests/trace/export/test_export.py +++ b/opentelemetry-sdk/tests/trace/export/test_export.py @@ -21,8 +21,10 @@ from logging import WARNING from platform import python_implementation, system from unittest import mock +from time import sleep from pytest import mark +from flaky import flaky from opentelemetry import trace as trace_api from opentelemetry.context import Context @@ -461,12 +463,10 @@ def _target(): span_processor.shutdown() - @mark.skipif( - python_implementation() == "PyPy" or system() == "Windows", - reason="This test randomly fails with huge delta in Windows with PyPy", - ) + @flaky(max_runs=3) def test_batch_span_processor_scheduled_delay(self): """Test that spans are exported each schedule_delay_millis""" + sleep(1) spans_names_list = [] export_event = threading.Event()