diff options
Diffstat (limited to 'modules/gtprof/trace_test.go')
-rw-r--r-- | modules/gtprof/trace_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gtprof/trace_test.go b/modules/gtprof/trace_test.go index 7e1743c88d..0f4e3facba 100644 --- a/modules/gtprof/trace_test.go +++ b/modules/gtprof/trace_test.go @@ -51,7 +51,7 @@ func (t *testTraceStarter) start(ctx context.Context, traceSpan *TraceSpan, inte func TestTraceStarter(t *testing.T) { globalTraceStarters = []traceStarter{&testTraceStarter{}} - ctx := context.Background() + ctx := t.Context() ctx, span := GetTracer().Start(ctx, "root") defer span.End() |