From 0f2121797202084fe612a62277104801a8b714af Mon Sep 17 00:00:00 2001 From: Doug Fawley Date: Mon, 5 Jun 2023 13:28:55 -0700 Subject: [PATCH] opencensus: stop overwriting ctx parameter in tests --- stats/opencensus/e2e_test.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/stats/opencensus/e2e_test.go b/stats/opencensus/e2e_test.go index d70d9f87024d..1f68675f0c1d 100644 --- a/stats/opencensus/e2e_test.go +++ b/stats/opencensus/e2e_test.go @@ -1342,8 +1342,6 @@ func (fe *fakeExporter) ExportSpan(sd *trace.SpanData) { // list in an exporter. Returns an error if no server span found within the // passed context's timeout. func waitForServerSpan(ctx context.Context, fe *fakeExporter) error { - ctx, cancel := context.WithTimeout(context.Background(), defaultTestTimeout) - defer cancel() for ; ctx.Err() == nil; <-time.After(time.Millisecond) { fe.mu.Lock() for _, seenSpan := range fe.seenSpans {