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

Commit

Permalink
[mock] Return ErrInvalidSpanContext if span context is not MockSpanCo…
Browse files Browse the repository at this point in the history
…ntext (#216)
  • Loading branch information
moorara authored and yurishkuro committed Jul 4, 2019
1 parent 659c906 commit 135aa78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mocktracer/mocktracer.go
Expand Up @@ -80,7 +80,7 @@ func (t *MockTracer) RegisterExtractor(format interface{}, extractor Extractor)
func (t *MockTracer) Inject(sm opentracing.SpanContext, format interface{}, carrier interface{}) error {
spanContext, ok := sm.(MockSpanContext)
if !ok {
return opentracing.ErrInvalidCarrier
return opentracing.ErrInvalidSpanContext
}
injector, ok := t.injectors[format]
if !ok {
Expand Down

0 comments on commit 135aa78

Please sign in to comment.