Merge pull request #2683 from nats-io/async-publish-test

fixed unit test where after a server shutdown no quorum existed
This commit is contained in:
Matthias Hanel
2021-11-08 20:40:02 -05:00
committed by GitHub

View File

@@ -9249,6 +9249,8 @@ func TestJetStreamClusterStreamUpdateSyncBug(t *testing.T) {
// Shutdown a server. The bug is that the update wiped the sync subject used to cacthup a stream that has the RAFT layer snapshotted.
nsl := c.randomNonStreamLeader("$G", "TEST")
nsl.Shutdown()
// make sure a leader exists
c.waitOnStreamLeader("$G", "TEST")
for i := 0; i < toSend*4; i++ {
if _, err := js.PublishAsync("foo", msg); err != nil {