mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
unifiedStorage: fix flaky integration test (#91199)
unified: fix flaky integration test
This commit is contained in:
parent
c68feecb6e
commit
901f7f1529
@ -58,7 +58,7 @@ func TestIntegrationBackendHappyPath(t *testing.T) {
|
|||||||
ctx := testutil.NewDefaultTestContext(t)
|
ctx := testutil.NewDefaultTestContext(t)
|
||||||
store := newServer(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)
|
require.NoError(t, err)
|
||||||
|
|
||||||
t.Run("Add 3 resources", func(t *testing.T) {
|
t.Run("Add 3 resources", func(t *testing.T) {
|
||||||
@ -161,7 +161,7 @@ func TestIntegrationBackendWatchWriteEventsFromLastest(t *testing.T) {
|
|||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
// Start the watch
|
// 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)
|
require.NoError(t, err)
|
||||||
|
|
||||||
// Create one more event
|
// Create one more event
|
||||||
|
Loading…
Reference in New Issue
Block a user