We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
RetryState.breakAndThrowIfRetryAndTrue
1 parent 446312c commit 65e9bc6Copy full SHA for 65e9bc6
1 file changed
driver-core/src/test/unit/com/mongodb/internal/async/function/RetryStateTest.java
@@ -148,8 +148,8 @@ void breakAndThrowIfRetryAndFalse(final TimeoutContext timeoutContext) {
148
149
@ParameterizedTest
150
@MethodSource({"infiniteTimeout", "noTimeout"})
151
- void breakAndThrowIfRetryAndTrue() {
152
- RetryState retryState = new RetryState(TIMEOUT_CONTEXT_NO_GLOBAL_TIMEOUT);
+ void breakAndThrowIfRetryAndTrue(final TimeoutContext timeoutContext) {
+ RetryState retryState = new RetryState(timeoutContext);
153
advance(retryState);
154
assertThrows(RuntimeException.class, () -> retryState.breakAndThrowIfRetryAnd(() -> true));
155
RuntimeException attemptException = new RuntimeException();
0 commit comments