From 5edd3cbe70bc60305b4393e69fb2dd9e911fb41d Mon Sep 17 00:00:00 2001 From: Prasad Shirodkar Date: Wed, 17 Apr 2024 12:08:50 -0700 Subject: [PATCH] removed flaky test case TestExporterShutdownHonorsTimeout --- exporters/stdout/stdouttrace/trace_test.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/exporters/stdout/stdouttrace/trace_test.go b/exporters/stdout/stdouttrace/trace_test.go index 45171977c49..a1fc44e559d 100644 --- a/exporters/stdout/stdouttrace/trace_test.go +++ b/exporters/stdout/stdouttrace/trace_test.go @@ -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()