Skip to content

Commit c70a3f9

Browse files
authored
Add @SuppressWarnings("try") to CommandBatchCursorTest, AsyncCommandBatchCursorTest (#1567)
1 parent 1b6f13a commit c70a3f9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

driver-core/src/test/functional/com/mongodb/internal/operation/AsyncCommandBatchCursorTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ void shouldSkipKillsCursorsCommandWhenTimeoutExceptionHaveNetworkErrorCause() {
196196
}
197197

198198
@Test
199+
@SuppressWarnings("try")
199200
void closeShouldResetTimeoutContextToDefaultMaxTime() {
200201
long maxTimeMS = 10;
201202
com.mongodb.assertions.Assertions.assertTrue(maxTimeMS < TIMEOUT.toMillis());

driver-core/src/test/unit/com/mongodb/internal/operation/CommandBatchCursorTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ void shouldSkipKillsCursorsCommandWhenTimeoutExceptionHaveNetworkErrorCause() {
179179
}
180180

181181
@Test
182+
@SuppressWarnings("try")
182183
void closeShouldResetTimeoutContextToDefaultMaxTime() {
183184
long maxTimeMS = 10;
184185
com.mongodb.assertions.Assertions.assertTrue(maxTimeMS < TIMEOUT.toMillis());

0 commit comments

Comments
 (0)