opencensus: stop overwriting ctx parameter in tests (#6350)

This commit is contained in:
Doug Fawley 2023-06-06 10:37:24 -07:00 committed by GitHub
parent 68576b3c42
commit 81c513a49c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -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 {