Skip to content

Commit c1023f3

Browse files
authored
Fix TestStoreGateway_InitialSyncWithWaitRingStability flakyness (cortexproject#4305)
Signed-off-by: Marco Pracucci <marco@pracucci.com>
1 parent 5e078f9 commit c1023f3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/storegateway/gateway_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,10 @@ func TestStoreGateway_InitialSyncWithWaitRingStability(t *testing.T) {
300300
t.Log("random generator seed:", seed)
301301

302302
ctx := context.Background()
303-
ringStore := consul.NewInMemoryClient(ring.GetCodec())
303+
ringStore := consul.NewInMemoryClientWithConfig(ring.GetCodec(), consul.Config{
304+
MaxCasRetries: 20,
305+
CasRetryDelay: 500 * time.Millisecond,
306+
})
304307

305308
// Create the configured number of gateways.
306309
var gateways []*StoreGateway

0 commit comments

Comments
 (0)