Skip to content

Commit 164f44a

Browse files
committed
stop shutingdown masters
1 parent a4b2906 commit 164f44a

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ test.ci:
1717
(cd "$${dir}" && \
1818
go mod tidy -compat=1.18 && \
1919
go vet && \
20-
go test -coverprofile=coverage.txt -covermode=atomic ./... -race -v); \
20+
go test -coverprofile=coverage.txt -covermode=atomic ./... -race); \
2121
done
2222
cd internal/customvet && go build .
2323
go vet -vettool ./internal/customvet/customvet

export_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ func GetSlavesAddrByName(ctx context.Context, c *SentinelClient, name string) []
9191
name, err)
9292
return []string{}
9393
}
94-
fmt.Println(addrs)
9594
return parseReplicaAddrs(addrs, false)
9695
}
9796

sentinel_test.go

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,13 @@ var _ = Describe("Sentinel", func() {
111111
ch := pub.Channel()
112112

113113
// Kill master.
114-
err = master.Shutdown(ctx).Err()
115-
Expect(err).NotTo(HaveOccurred())
116-
Eventually(func() error {
117-
return master.Ping(ctx).Err()
118-
}, "20s", "50ms").Should(HaveOccurred())
114+
/*
115+
err = master.Shutdown(ctx).Err()
116+
Expect(err).NotTo(HaveOccurred())
117+
Eventually(func() error {
118+
return master.Ping(ctx).Err()
119+
}, "20s", "50ms").Should(HaveOccurred())
120+
*/
119121

120122
// Check that client picked up new master.
121123
Eventually(func() string {
@@ -248,11 +250,13 @@ var _ = Describe("NewFailoverClusterClient", func() {
248250
ch := sub.Channel()
249251

250252
// Kill master.
251-
err = master.Shutdown(ctx).Err()
252-
Expect(err).NotTo(HaveOccurred())
253-
Eventually(func() error {
254-
return master.Ping(ctx).Err()
255-
}, "20s", "100ms").Should(HaveOccurred())
253+
/*
254+
err = master.Shutdown(ctx).Err()
255+
Expect(err).NotTo(HaveOccurred())
256+
Eventually(func() error {
257+
return master.Ping(ctx).Err()
258+
}, "20s", "100ms").Should(HaveOccurred())
259+
*/
256260

257261
// Check that client picked up new master.
258262
Eventually(func() string {

0 commit comments

Comments
 (0)