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

Commit

Permalink
Updating the Mock Tests To Use Proper Scope Manager
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
natehart committed Mar 28, 2018
1 parent 2691c70 commit eae8e63
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public MockTracer(ScopeManager scopeManager, Propagator propagator) {
* Create a new MockTracer that passes through any calls to inject() and/or extract().
*/
public MockTracer(Propagator propagator) {
this(NoopScopeManager.INSTANCE, propagator);
this(new ThreadLocalScopeManager(), propagator);
}

/**
Expand Down

0 comments on commit eae8e63

Please sign in to comment.