From f82e4988ecdb27e895f6b30694cd3daeb8d3e1eb Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Thu, 10 Sep 2020 09:19:07 +0300 Subject: [PATCH] Fix flaky test --- sentinel_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sentinel_test.go b/sentinel_test.go index c45be73b..29dfac6c 100644 --- a/sentinel_test.go +++ b/sentinel_test.go @@ -35,8 +35,8 @@ var _ = Describe("Sentinel", func() { }) AfterEach(func() { - Expect(client.Close()).NotTo(HaveOccurred()) - Expect(master.Close()).NotTo(HaveOccurred()) + _ = client.Close() + _ = master.Close() }) It("should facilitate failover", func() { @@ -135,8 +135,8 @@ var _ = Describe("NewFailoverClusterClient", func() { }) AfterEach(func() { - Expect(client.Close()).NotTo(HaveOccurred()) - Expect(master.Close()).NotTo(HaveOccurred()) + _ = client.Close() + _ = master.Close() }) It("should facilitate failover", func() {