From 901f7f1529b66dfbe747c124ab1eec6562bfc471 Mon Sep 17 00:00:00 2001 From: Georges Chaudy Date: Tue, 30 Jul 2024 15:55:51 +0200 Subject: [PATCH] unifiedStorage: fix flaky integration test (#91199) unified: fix flaky integration test --- pkg/storage/unified/sql/test/integration_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/storage/unified/sql/test/integration_test.go b/pkg/storage/unified/sql/test/integration_test.go index c1c10dfac4f..bdd26c6722c 100644 --- a/pkg/storage/unified/sql/test/integration_test.go +++ b/pkg/storage/unified/sql/test/integration_test.go @@ -58,7 +58,7 @@ func TestIntegrationBackendHappyPath(t *testing.T) { ctx := testutil.NewDefaultTestContext(t) store := newServer(t) - stream, err := store.WatchWriteEvents(ctx) + stream, err := store.WatchWriteEvents(context.Background()) // Using a different context to avoid canceling the stream after the DefaultContextTimeout require.NoError(t, err) t.Run("Add 3 resources", func(t *testing.T) { @@ -161,7 +161,7 @@ func TestIntegrationBackendWatchWriteEventsFromLastest(t *testing.T) { require.NoError(t, err) // Start the watch - stream, err := store.WatchWriteEvents(ctx) + stream, err := store.WatchWriteEvents(context.Background()) // Using a different context to avoid canceling the stream after the DefaultContextTimeout require.NoError(t, err) // Create one more event