Skip to content

Commit fda498c

Browse files
committed
Fixing unit test
1 parent 0b3ee81 commit fda498c

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
@@ -69,7 +69,7 @@ void testCustomJitter() {
6969
// Test with jitter = 0, all backoffs should be 0
7070
ExponentialBackoff.setTestJitterSupplier(() -> 0.0);
7171
try {
72-
for (int attemptNumber = 0; attemptNumber < 10; attemptNumber++) {
72+
for (int attemptNumber = 1; attemptNumber < 11; attemptNumber++) {
7373
long backoff = ExponentialBackoff.calculateTransactionBackoffMs(attemptNumber);
7474
assertEquals(0, backoff, "With jitter=0, backoff should always be 0 ms");
7575
}

0 commit comments

Comments
 (0)