From b85a319370bcbfa911af96328e0feb8a4688391f Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Fri, 11 Sep 2020 16:56:02 +0300 Subject: [PATCH] Make build more stable --- sentinel_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sentinel_test.go b/sentinel_test.go index 46263a86..a4d848b4 100644 --- a/sentinel_test.go +++ b/sentinel_test.go @@ -156,9 +156,9 @@ var _ = Describe("NewFailoverClusterClient", func() { for i := 0; i < 100; i++ { // Verify. - val, err := client.Get(ctx, "foo").Result() - Expect(err).NotTo(HaveOccurred()) - Expect(val).To(Equal("master")) + Eventually(func() string { + return client.Get(ctx, "foo").Val() + }, "15s", "1ms").Should(Equal("master")) } // Create subscription.