Skip to content

Commit

Permalink
nit: Simplify test condition in trace_test.go (#2448)
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
  • Loading branch information
bogdandrutu and MrAlias committed Dec 15, 2021
1 parent 24aecc5 commit 8f4a477
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions trace_test.go
Expand Up @@ -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"
)
Expand All @@ -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)
}

0 comments on commit 8f4a477

Please sign in to comment.