Skip to content

Commit

Permalink
One last attempt with a forced delay
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelotl committed Jul 3, 2024
1 parent 8ababa4 commit 32a63f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions opentelemetry-sdk/tests/trace/export/test_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 32a63f0

Please sign in to comment.