From b3b92e24715806f9354fc53b539b32a3813ae474 Mon Sep 17 00:00:00 2001 From: Marco de Abreu Date: Tue, 15 Apr 2025 20:28:27 +0200 Subject: [PATCH] Storage: Change timeout for flaky test (#104065) Change timeout for flaky test Co-authored-by: Marco de Abreu <18629099+marcoabreu@users.noreply.github.com> --- pkg/storage/unified/testing/storage_backend.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/storage/unified/testing/storage_backend.go b/pkg/storage/unified/testing/storage_backend.go index e6e831dabc3..df2b2f5833f 100644 --- a/pkg/storage/unified/testing/storage_backend.go +++ b/pkg/storage/unified/testing/storage_backend.go @@ -882,7 +882,7 @@ func runTestIntegrationBackendListHistoryErrorReporting(t *testing.T, backend re }, } - shortContext, cancel := context.WithTimeout(ctx, 1*time.Millisecond) + shortContext, cancel := context.WithTimeout(ctx, 1*time.Microsecond) defer cancel() res, err := server.List(shortContext, req) @@ -890,6 +890,7 @@ func runTestIntegrationBackendListHistoryErrorReporting(t *testing.T, backend re t.Log("list error:", err) if res != nil { t.Log("iterator error:", res.Error) + t.Log("numItems:", len(res.Items)) } require.True(t, err != nil || (res != nil && res.Error != nil)) }