Skip to content

Commit 520fead

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 09a1291 commit 520fead

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,7 @@ void testRetryBackoffIsEnforced() {
256256
collection.insertOne(session, Document.parse("{ _id : 'backoff-test-no-jitter' }"));
257257
return null;
258258
});
259-
long endNanos = System.nanoTime();
260-
noBackoffTime = TimeUnit.NANOSECONDS.toMillis(endNanos - startNanos);
259+
noBackoffTime = TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - startNanos);```
261260
} finally {
262261
// Clear the test jitter supplier to avoid affecting other tests
263262
ExponentialBackoff.clearTestJitterSupplier();

0 commit comments

Comments
 (0)