From 71cd299d5545064fe1f367ecff2ff2dcedb64e7e Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Wed, 21 Jul 2021 11:32:26 -0700 Subject: [PATCH] Update internal/global to use propagationtest --- internal/global/propagator_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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.