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()