Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AchoArnold committed Oct 15, 2022
1 parent 4bb5130 commit 5b4c0cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions option_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package otelroundtripper

import (
"go.opentelemetry.io/otel/metric"
"net/http"
"testing"

"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/metric/nonrecording"
semconv "go.opentelemetry.io/otel/semconv/v1.7.0"

"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -81,7 +81,7 @@ func TestWithMeter(t *testing.T) {

// Arrange
cfg := defaultConfig()
meter := nonrecording.NewNoopMeter()
meter := metric.NewNoopMeter()

// Act
WithMeter(meter).apply(cfg)
Expand Down
4 changes: 2 additions & 2 deletions round_tripper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package otelroundtripper
import (
"context"
"errors"
"go.opentelemetry.io/otel/metric"
"io/ioutil"
"net"
"net/http"
Expand All @@ -13,7 +14,6 @@ import (

"github.com/stretchr/testify/assert"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/metric/nonrecording"
semconv "go.opentelemetry.io/otel/semconv/v1.7.0"
)

Expand All @@ -29,7 +29,7 @@ func TestNew(t *testing.T) {
roundTripper := New(
WithName("name"),
WithParent(http.DefaultTransport),
WithMeter(nonrecording.NewNoopMeter()),
WithMeter(metric.NewNoopMeter()),
WithAttributes([]attribute.KeyValue{semconv.ServiceNameKey.String("service")}...),
)
assert.NotNil(t, roundTripper)
Expand Down

0 comments on commit 5b4c0cd

Please sign in to comment.