Skip to content

Commit

Permalink
removed flaky test case TestExporterShutdownHonorsTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
prasad-shirodkar committed Apr 17, 2024
1 parent 261659f commit 5edd3cb
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions exporters/stdout/stdouttrace/trace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,21 +195,6 @@ func expectedJSON(now time.Time) string {
`
}

func TestExporterShutdownHonorsTimeout(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Minute)
defer cancel()

e, err := stdouttrace.New()
if err != nil {
t.Fatalf("failed to create exporter: %v", err)
}

innerCtx, innerCancel := context.WithTimeout(ctx, time.Nanosecond)
defer innerCancel()
err = e.Shutdown(innerCtx)
assert.NoError(t, err)
}

func TestExporterShutdownIgnoresContext(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Minute)
defer cancel()
Expand Down

0 comments on commit 5edd3cb

Please sign in to comment.