Skip to content

Commit 4bbef70

Browse files
committed
Using correct jitter value in CSOT tests using withTransaction
1 parent 9a925e1 commit 4bbef70

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

driver-sync/src/test/functional/com/mongodb/client/AbstractClientSideOperationsTimeoutProseTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,7 @@ public void setUp() {
11231123

11241124
// setting jitter to 0 to make test using withTransaction deterministic (i.e retries immediately) otherwise we might get
11251125
// MongoCommandException setup in the failpoint instead of MongoOperationTimeoutException depending on the random jitter value.
1126-
ExponentialBackoff.setTestJitterSupplier(() -> 1.0);
1126+
ExponentialBackoff.setTestJitterSupplier(() -> 0);
11271127

11281128
}
11291129

0 commit comments

Comments
 (0)