diff --git a/internal/global/propagator_test.go b/internal/global/propagator_test.go index 1089c896ac3..9c1def03db3 100644 --- a/internal/global/propagator_test.go +++ b/internal/global/propagator_test.go @@ -19,13 +19,13 @@ import ( "testing" "go.opentelemetry.io/otel/internal/global" - "go.opentelemetry.io/otel/oteltest" + "go.opentelemetry.io/otel/propagation/propagationtest" ) func TestTextMapPropagatorDelegation(t *testing.T) { global.ResetForTest() ctx := context.Background() - carrier := oteltest.NewTextMapCarrier(nil) + carrier := propagationtest.NewTextMapCarrier(nil) // The default should be a noop. initial := global.TextMapPropagator() @@ -36,7 +36,7 @@ func TestTextMapPropagatorDelegation(t *testing.T) { } // Make sure the delegate woks as expected. - delegate := oteltest.NewTextMapPropagator("test") + delegate := propagationtest.NewTextMapPropagator("test") delegate.Inject(ctx, carrier) ctx = delegate.Extract(ctx, carrier) if !delegate.InjectedN(t, carrier, 1) || !delegate.ExtractedN(t, ctx, 1) { @@ -55,7 +55,7 @@ func TestTextMapPropagatorDelegation(t *testing.T) { func TestTextMapPropagatorDelegationNil(t *testing.T) { global.ResetForTest() ctx := context.Background() - carrier := oteltest.NewTextMapCarrier(nil) + carrier := propagationtest.NewTextMapCarrier(nil) // The default should be a noop. initial := global.TextMapPropagator() @@ -77,7 +77,7 @@ func TestTextMapPropagatorDelegationNil(t *testing.T) { func TestTextMapPropagatorFields(t *testing.T) { global.ResetForTest() initial := global.TextMapPropagator() - delegate := oteltest.NewTextMapPropagator("test") + delegate := propagationtest.NewTextMapPropagator("test") delegateFields := delegate.Fields() // Sanity check on the initial Fields.