Skip to content

Commit c7eeca2

Browse files
author
hidu
committed
fix unstable ut: should facilitate failover
1 parent 6e0ed33 commit c7eeca2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sentinel_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ package redis_test
33
import (
44
"net"
55

6-
"github.com/go-redis/redis/v8"
7-
86
. "github.com/onsi/ginkgo"
97
. "github.com/onsi/gomega"
8+
9+
"github.com/go-redis/redis/v8"
1010
)
1111

1212
var _ = Describe("Sentinel", func() {
@@ -188,7 +188,7 @@ var _ = Describe("NewFailoverClusterClient", func() {
188188
ch := client.Subscribe(ctx, "foo").Channel()
189189

190190
// Kill master.
191-
err = master.Shutdown(ctx).Err()
191+
err = master.ShutdownNoSave(ctx).Err()
192192
Expect(err).NotTo(HaveOccurred())
193193
Eventually(func() error {
194194
return sentinelMaster.Ping(ctx).Err()

0 commit comments

Comments
 (0)