Skip to content

Conversation

@xrmx
Copy link
Contributor

@xrmx xrmx commented May 30, 2024

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.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

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

  • tox -e py310-opentelemetry-sdk

Does This PR Require a Contrib Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

…laky

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 open-telemetry#3936
@xrmx xrmx added the Skip Changelog PRs that do not require a CHANGELOG.md entry label May 30, 2024
@xrmx xrmx requested a review from a team May 30, 2024 15:07
@ocelotl ocelotl merged commit 4febd33 into open-telemetry:main May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Skip Changelog PRs that do not require a CHANGELOG.md entry

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Flaky test_batch_span_processor_reset_timeout test on windows CI

3 participants