From c7eeca2a5ca7cdef82cfe39b21dd781d5a286007 Mon Sep 17 00:00:00 2001 From: hidu Date: Fri, 16 Jul 2021 18:20:20 +0800 Subject: [PATCH] fix unstable ut: should facilitate failover --- sentinel_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sentinel_test.go b/sentinel_test.go index 7b4aabdb..22733f4e 100644 --- a/sentinel_test.go +++ b/sentinel_test.go @@ -3,10 +3,10 @@ package redis_test import ( "net" - "github.com/go-redis/redis/v8" - . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" + + "github.com/go-redis/redis/v8" ) var _ = Describe("Sentinel", func() { @@ -188,7 +188,7 @@ var _ = Describe("NewFailoverClusterClient", func() { ch := client.Subscribe(ctx, "foo").Channel() // Kill master. - err = master.Shutdown(ctx).Err() + err = master.ShutdownNoSave(ctx).Err() Expect(err).NotTo(HaveOccurred()) Eventually(func() error { return sentinelMaster.Ping(ctx).Err()