1
0
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:
Bogdan Drutu 2021-12-15 07:42:37 -08:00 committed by GitHub
parent 24aecc561d
commit 8f4a47732f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}