Skip to content

Commit 65e9bc6

Browse files
committed
Add the missing parameter for RetryState.breakAndThrowIfRetryAndTrue
1 parent 446312c commit 65e9bc6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

driver-core/src/test/unit/com/mongodb/internal/async/function/RetryStateTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ void breakAndThrowIfRetryAndFalse(final TimeoutContext timeoutContext) {
148148

149149
@ParameterizedTest
150150
@MethodSource({"infiniteTimeout", "noTimeout"})
151-
void breakAndThrowIfRetryAndTrue() {
152-
RetryState retryState = new RetryState(TIMEOUT_CONTEXT_NO_GLOBAL_TIMEOUT);
151+
void breakAndThrowIfRetryAndTrue(final TimeoutContext timeoutContext) {
152+
RetryState retryState = new RetryState(timeoutContext);
153153
advance(retryState);
154154
assertThrows(RuntimeException.class, () -> retryState.breakAndThrowIfRetryAnd(() -> true));
155155
RuntimeException attemptException = new RuntimeException();

0 commit comments

Comments
 (0)