Skip to content

Commit

Permalink
opencensus: stop overwriting ctx parameter in tests (#6350)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfawley authored Jun 6, 2023
1 parent 68576b3 commit 81c513a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions stats/opencensus/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 81c513a

Please sign in to comment.