Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ywangd committed Sep 11, 2024
1 parent 0eed4e7 commit 63a4614
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
import java.util.function.Supplier;

import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito.spy;

/**
Expand Down Expand Up @@ -311,7 +312,7 @@ private MockTransportService(
4,
30,
TimeUnit.SECONDS,
false,
true,
EsExecutors.daemonThreadFactory("mock-transport"),
threadPool.getThreadContext()
);
Expand Down Expand Up @@ -809,7 +810,7 @@ protected void doClose() throws IOException {
} catch (InterruptedException e) {
throw new IllegalStateException(e);
} finally {
ThreadPool.terminate(testExecutor, 10, TimeUnit.SECONDS);
assertTrue(ThreadPool.terminate(testExecutor, 10, TimeUnit.SECONDS));
}
}

Expand Down

0 comments on commit 63a4614

Please sign in to comment.