mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-15 10:40:41 -07:00
Merge pull request #2435 from nats-io/unit-test-fail
Made test more predictable by waiting for leader after leader shutdown
This commit is contained in:
@@ -1975,6 +1975,7 @@ func TestNoRaceJetStreamClusterMirrorExpirationAndMissingSequences(t *testing.T)
|
||||
// Now shutdown the server with the mirror.
|
||||
ms := c.streamLeader("$G", "M")
|
||||
ms.Shutdown()
|
||||
c.waitOnLeader()
|
||||
|
||||
// Send more messages but let them expire.
|
||||
sendBatch(10)
|
||||
|
||||
Reference in New Issue
Block a user