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

Updating the Mock Tests To Use Proper Scope Manager#264

Merged
yurishkuro merged 1 commit intoopentracing:masterfrom
natehart:nhart/mock_scope_manager
Mar 29, 2018
Merged

Updating the Mock Tests To Use Proper Scope Manager#264
yurishkuro merged 1 commit intoopentracing:masterfrom
natehart:nhart/mock_scope_manager

Conversation

@natehart
Copy link
Copy Markdown
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>
@tedsuo tedsuo requested review from bhs and carlosalberto March 28, 2018 21:51
@coveralls
Copy link
Copy Markdown

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
Copy Markdown
Member

LGTM

@natehart
Copy link
Copy Markdown
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.

3 participants