Merge pull request #1601 from ripienaar/skip_ack_on_acknxt

Do not ack to AckNxt
This commit is contained in:
Derek Collison
2020-09-28 17:19:35 -07:00
committed by GitHub
2 changed files with 10 additions and 1 deletions

View File

@@ -1665,6 +1665,11 @@ func TestJetStreamWorkQueueAckAndNext(t *testing.T) {
if err != nil {
t.Fatalf("Unexpected error waiting for messages: %v", err)
}
if !bytes.Equal(m.Data, []byte("Hello World!")) {
t.Fatalf("Got an invalid message from the stream: %q", m.Data)
}
nc.PublishRequest(m.Reply, sub.Subject, server.AckNext)
}
})