Skip to content

Commit

Permalink
Fix test for same pointers
Browse files Browse the repository at this point in the history
Check equality instead.
  • Loading branch information
MrAlias committed Nov 23, 2024
1 parent 6262be1 commit 68e15ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/global/trace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func TestTraceProviderDelegatesSameInstance(t *testing.T) {
},
})

assert.NotSame(t, tracer, gtp.Tracer("abc", trace.WithInstrumentationVersion("xyz")))
assert.NotEqual(t, tracer, gtp.Tracer("abc", trace.WithInstrumentationVersion("xyz")))
}

func TestSpanContextPropagatedWithNonRecordingSpan(t *testing.T) {
Expand Down

0 comments on commit 68e15ff

Please sign in to comment.