Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stlava committed May 7, 2024
1 parent cc95230 commit ed54709
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rediscluster/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ func (s *Suite) TestFallbackToSlaveStop() {

s.cl.Node[0].Stop()
// test read from replica
s.Equal([]byte("1"), sconn.Do(s.ctx, "GET", key))
s.Equal(redis.ByteResponse{Val: []byte("1")}, sconn.Do(s.ctx, "GET", key))

// wait replica becomes master
s.cl.WaitClusterOk()
Expand Down Expand Up @@ -394,7 +394,7 @@ func (s *Suite) TestFallbackToSlaveTimeout() {

s.cl.Node[0].Pause()
// test read from replica
s.Equal([]byte("1"), sconn.Do(s.ctx, "GET", key))
s.Equal(redis.ByteResponse{Val: []byte("1")}, sconn.Do(s.ctx, "GET", key))
s.Contains(DebugEvents(), "retry")

// wait replica becomes master
Expand Down Expand Up @@ -938,7 +938,7 @@ func (s *Suite) TestFallbackTimeoutLatency() {

s.cl.Node[0].Pause()
// test read from replica
s.Equal([]byte("1"), sconn.Do(s.ctx, "GET", key))
s.Equal(redis.ByteResponse{Val: []byte("1")}, sconn.Do(s.ctx, "GET", key))
s.Contains(DebugEvents(), "retry")

// wait replica becomes master
Expand Down

0 comments on commit ed54709

Please sign in to comment.