Skip to content

Commit 1d167aa

Browse files
authored
PIP-2248: Fix timeout in tracing unit tests. (#156)
1 parent 223e644 commit 1d167aa

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

tracing/tracing.go

-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"context"
55
"os"
66
"strings"
7-
"time"
87

98
"go.opentelemetry.io/otel"
109
"go.opentelemetry.io/otel/exporters/jaeger"
@@ -141,9 +140,6 @@ func CloseTracing(ctx context.Context) error {
141140
return errors.New("OpenTelemetry global tracer provider has not been initialized")
142141
}
143142

144-
ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
145-
defer cancel()
146-
147143
err := tp.Shutdown(ctx)
148144
if err != nil {
149145
return errors.Wrap(err, "error in tp.Shutdown")

0 commit comments

Comments
 (0)