Commit c036670
test(kafka-binder): update retry expectations to align with corrected maxAttempts semantics
Updated Kafka binder tests to reflect the corrected semantics of `maxAttempts`.
Previously, tests assumed `maxAttempts` represented the number of retries,
leading to expectations of `maxAttempts + 1` total executions.
With the fix in AbstractBinder, `maxAttempts` now correctly represents the
total number of delivery attempts. As a result, test assertions have been
updated to match the new behavior.
No functional changes in Kafka binder logic; only test expectations updated.
Signed-off-by: vishwasio <im.vishwas.03@gmail.com>
Resolves #31861 parent 7bc2b88 commit c036670
File tree
1 file changed
+5
-6
lines changed- binders/kafka-binder/spring-cloud-stream-binder-kafka/src/test/java/org/springframework/cloud/stream/binder/kafka
1 file changed
+5
-6
lines changedLines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1309 | 1309 | | |
1310 | 1310 | | |
1311 | 1311 | | |
1312 | | - | |
1313 | | - | |
| 1312 | + | |
1314 | 1313 | | |
1315 | 1314 | | |
1316 | 1315 | | |
| |||
1422 | 1421 | | |
1423 | 1422 | | |
1424 | 1423 | | |
1425 | | - | |
| 1424 | + | |
1426 | 1425 | | |
1427 | 1426 | | |
1428 | 1427 | | |
| |||
1484 | 1483 | | |
1485 | 1484 | | |
1486 | 1485 | | |
1487 | | - | |
| 1486 | + | |
1488 | 1487 | | |
1489 | 1488 | | |
1490 | 1489 | | |
| |||
1609 | 1608 | | |
1610 | 1609 | | |
1611 | 1610 | | |
1612 | | - | |
| 1611 | + | |
1613 | 1612 | | |
1614 | 1613 | | |
1615 | 1614 | | |
| |||
1689 | 1688 | | |
1690 | 1689 | | |
1691 | 1690 | | |
1692 | | - | |
| 1691 | + | |
1693 | 1692 | | |
1694 | 1693 | | |
1695 | 1694 | | |
| |||
0 commit comments