Skip to content

Commit 4febd33

Browse files
xrmxocelotl
andauthored
sdk: try to make test_batch_span_processor_reset_timeout a bit less flaky (#3937)
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. Fix #3936 Co-authored-by: Diego Hurtado <[email protected]>
1 parent 83811bf commit 4febd33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opentelemetry-sdk/tests/trace/export/test_export.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ def test_batch_span_processor_reset_timeout(self):
513513

514514
# give some time for exporter to loop
515515
# since wait is mocked it should return immediately
516-
time.sleep(0.05)
516+
time.sleep(0.1)
517517
mock_wait_calls = list(mock_wait.mock_calls)
518518

519519
# find the index of the call that processed the singular span

0 commit comments

Comments
 (0)