Skip to content

Commit 24d4ee5

Browse files
nhachichastIncMale
andcommitted
Update driver-core/src/test/unit/com/mongodb/internal/time/ExponentialBackoffTest.java
Co-authored-by: Valentin Kovalenko <valentin.male.kovalenko@gmail.com>
1 parent e5ae458 commit 24d4ee5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

driver-core/src/test/unit/com/mongodb/internal/time/ExponentialBackoffTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void testCustomJitter() {
7070
// Test with jitter = 0, all backoffs should be 0
7171
ExponentialBackoff.setTestJitterSupplier(() -> 0.0);
7272
try {
73-
for (int attemptNumber = 1; attemptNumber < 11; attemptNumber++) {
73+
for (int attemptNumber = 1; attemptNumber < expectedBackoffs.length; attemptNumber++) {
7474
long backoff = ExponentialBackoff.calculateTransactionBackoffMs(attemptNumber);
7575
assertEquals(0, backoff, "With jitter=0, backoff should always be 0 ms");
7676
}

0 commit comments

Comments
 (0)