Skip to content
Prev Previous commit
Next Next commit
Update driver-sync/src/test/functional/com/mongodb/client/AbstractCli…
…entSideOperationsTimeoutProseTest.java Co-authored-by: Valentin Kovalenko <valentin.male.kovalenko@gmail.com>
  • Loading branch information
vbabanin and stIncMale authored Jul 30, 2025
commit df6fd718d06723d8beed25a45c5cb14f99dacc08
Original file line number Diff line number Diff line change
Expand Up @@ -1091,9 +1091,11 @@ public void tearDown() throws InterruptedException {
}
}

executor.shutdownNow();
//noinspection ResultOfMethodCallIgnored
executor.awaitTermination(MAX_VALUE, NANOSECONDS);
if (executor != null) {
executor.shutdownNow();
//noinspection ResultOfMethodCallIgnored
executor.awaitTermination(MAX_VALUE, NANOSECONDS);
}
}

@AfterAll
Expand Down