mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-01-16 02:47:20 +02:00
nit: Simplify test condition in trace_test.go (#2448)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com> Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
This commit is contained in:
parent
24aecc561d
commit
8f4a47732f
@ -17,6 +17,8 @@ package otel
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"go.opentelemetry.io/otel/internal/trace/noop"
|
||||
"go.opentelemetry.io/otel/trace"
|
||||
)
|
||||
@ -36,8 +38,5 @@ func TestMultipleGlobalTracerProvider(t *testing.T) {
|
||||
SetTracerProvider(p2)
|
||||
|
||||
got := GetTracerProvider()
|
||||
want := p2
|
||||
if got != want {
|
||||
t.Fatalf("TracerProvider: got %p, want %p\n", got, want)
|
||||
}
|
||||
assert.Equal(t, p2, got)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user