Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Updating the Mock Tests To Use Proper Scope Manager #264

Merged
merged 1 commit into from
Mar 29, 2018

Conversation

natehart
Copy link
Contributor

Currently, the no-argument constructor for the MockTracer uses a ThreadLocalScopeManager
and a Propagator.TEXT_MAP as default values. But when providing a Propagator,
the constructor injects a NoopScopeManager instead of the ThreadLocalScopeManager.

This commit brings the Propagator constructor closer into line with the default
values for this mock.

cc: @yurishkuro

Signed-off-by: Nate Hart nhart@tableau.com

Currently, the no-argument constructor for the MockTracer uses a `ThreadLocalScopeManager`
and a `Propagator.TEXT_MAP` as default values. But when providing a Propagator,
the constructor injects a `NoopScopeManager` instead of the `ThreadLocalScopeManager`.

This commit brings the Propagator constructor closer into line with the default
values for this mock.

Signed-off-by: Nate Hart <nhart@tableau.com>
@coveralls
Copy link

Coverage Status

Coverage remained the same at 81.515% when pulling eae8e63 on natehart:nhart/mock_scope_manager into 2691c70 on opentracing:master.

@yurishkuro yurishkuro added the bug label Mar 28, 2018
@yurishkuro
Copy link
Member

LGTM

@natehart
Copy link
Contributor Author

@yurishkuro Sorry, I don't have write access to merge.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants