Skip to content

Commit 59a3855

Browse files
committed
change missing context usage in observability_test to context.WithTimeout
1 parent 96345b1 commit 59a3855

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

stats/opentelemetry/csm/observability_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,9 @@ func (s) TestXDSLabels(t *testing.T) {
606606
// without error. The actual functionality of this function will be verified in
607607
// interop tests.
608608
func (s) TestObservability(t *testing.T) {
609-
cleanup := EnableObservability(context.Background(), opentelemetry.Options{})
609+
ctx, cancel := context.WithTimeout(context.Background(), defaultTestTimeout)
610+
defer cancel()
611+
612+
cleanup := EnableObservability(ctx, opentelemetry.Options{})
610613
cleanup()
611614
}

0 commit comments

Comments
 (0)