Skip to content

Commit 478e242

Browse files
nhachichastIncMale
andcommitted
Update driver-sync/src/test/functional/com/mongodb/client/WithTransactionProseTest.java
Co-authored-by: Valentin Kovalenko <valentin.male.kovalenko@gmail.com>
1 parent 520fead commit 478e242

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,10 +271,7 @@ void testRetryBackoffIsEnforced() {
271271
long withBackoffTime;
272272
try (ClientSession session = client.startSession()) {
273273
long startNanos = System.nanoTime();
274-
session.withTransaction(() -> {
275-
collection.insertOne(session, Document.parse("{ _id : 'backoff-test-full-jitter' }"));
276-
return null;
277-
});
274+
session.withTransaction(() -> collection.insertOne(session, Document.parse("{ _id : 'backoff-test-full-jitter' }")));
278275
withBackoffTime = TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - startNanos);
279276
} finally {
280277
ExponentialBackoff.clearTestJitterSupplier();

0 commit comments

Comments
 (0)