Skip to content

Commit

Permalink
Fixed JetStreamBackOffRedeliveries test (#822)
Browse files Browse the repository at this point in the history
Since this server PR: nats-io/nats-server#6154
the error occurs only if MaxDeliver is specified, but it is strictly
lower than BackOff length. So fix the test by lowering it to 1.

Signed-off-by: Ivan Kozlovic <[email protected]>
  • Loading branch information
kozlovic authored Nov 24, 2024
1 parent 227b48e commit 2c59da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -31106,7 +31106,7 @@ void test_JetStreamBackOffRedeliveries(void)
so.Config.AckPolicy = js_AckExplicit;
so.Config.DeliverPolicy = js_DeliverAll;
so.Config.DeliverSubject = inbox;
so.Config.MaxDeliver = 2;
so.Config.MaxDeliver = 1;
so.Config.BackOff = (int64_t[]){NATS_MILLIS_TO_NANOS(50), NATS_MILLIS_TO_NANOS(250)};
so.Config.BackOffLen = 2;
s = js_SubscribeSync(&sub, js, "foo", NULL, &so, &jerr);
Expand Down

0 comments on commit 2c59da4

Please sign in to comment.