Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test:Migrate DefaultContextProvider tests to RSpec #1152

Merged
merged 1 commit into from
Aug 21, 2020

Conversation

marcotc
Copy link
Member

@marcotc marcotc commented Aug 20, 2020

Most test coverage in test/provider_test.rb is actually the responsibility of Datadog::ThreadLocalContext, which already tests all the internal complex behaviour.

This PR adds tests for the delegation of behaviour from Datadog::DefaultContextProvider to Datadog::ThreadLocalContext and adds an extra test to ensure multiple instances do not interfere with each other, due to thread local usage.

@marcotc marcotc added the dev/testing Involves testing processes (e.g. RSpec) label Aug 20, 2020
@marcotc marcotc requested a review from a team August 20, 2020 22:12
@marcotc marcotc self-assigned this Aug 20, 2020
Copy link
Contributor

@ericmustin ericmustin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit: 👍

@marcotc marcotc merged commit 1fcb4b5 into master Aug 21, 2020
@marcotc marcotc deleted the test/DefaultContextProvider branch August 21, 2020 18:51
@marcotc marcotc added this to the 0.40.0 milestone Sep 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev/testing Involves testing processes (e.g. RSpec)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants