open-telemetry / opentelemetry-python

OpenTelemetry Python API and SDK
https://opentelemetry.io
Apache License 2.0
1.67k stars 569 forks source link

sdk: try to make test_batch_span_processor_reset_timeout a bit less flaky #3937

Closed xrmx closed 1 month ago

xrmx commented 1 month ago

Description

If the BatchSpanProcessor has not processed its queue test will fail with: UnboundLocalError: local variable 'after_calls' referenced before assignment So double the sleep to more than the schedule_delay_millis to give it more room.

Fixes #3936

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Does This PR Require a Contrib Repo Change?

Checklist: