mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
[FIXED] Allow time for the 3rd replica to be current - TestJetStreamClusterStaleReadsOnRestart (#4513)
Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
@@ -7096,8 +7096,10 @@ func TestJetStreamClusterStaleReadsOnRestart(t *testing.T) {
|
||||
c.restartServer(sl)
|
||||
c.waitOnAllCurrent()
|
||||
|
||||
var state StreamState
|
||||
// Allow the 3rd replica to be current.
|
||||
time.Sleep(250 * time.Millisecond)
|
||||
|
||||
var state StreamState
|
||||
for _, s := range c.servers {
|
||||
if s.Running() {
|
||||
mset, err := s.GlobalAccount().lookupStream("TEST")
|
||||
|
||||
Reference in New Issue
Block a user