Skip to content

Commit 0c10988

Browse files
nhachichastIncMale
andauthored
Update driver-core/src/test/unit/com/mongodb/internal/time/ExponentialBackoffTest.java
Co-authored-by: Valentin Kovalenko <valentin.male.kovalenko@gmail.com>
1 parent 9eebf51 commit 0c10988

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222
import static org.junit.jupiter.api.Assertions.assertTrue;
2323

2424
class ExponentialBackoffTest {
25-
// Expected backoffs with jitter=1.0 and growth factor ExponentialBackoff.TRANSACTION_GROWTH
25+
/**
26+
* Expected {@linkplain ExponentialBackoff#calculateTransactionBackoffMs(int) backoffs} with 1.0 as
27+
* {@link ExponentialBackoff#setTestJitterSupplier(DoubleSupplier) jiter}.
28+
*/
2629
private static final double[] EXPECTED_BACKOFFS_MAX_VALUES = {5.0, 7.5, 11.25, 16.875, 25.3125, 37.96875, 56.953125, 85.4296875, 128.14453125,
2730
192.21679688, 288.32519531, 432.48779297, 500.0};
2831

0 commit comments

Comments
 (0)