Skip to content
Permalink
Browse files
fix: Watchdog.shutdownNow() does not shutdown executor (#1158)
Co-authored-by: Radek Grebski <radoslaw.grebski@stepwise.pl>
  • Loading branch information
rgrebski and Radek Grebski committed Aug 6, 2020
1 parent 2c56c79 commit 6241a2118690d07dd28ffb9447423363f3f914e4
Showing with 1 addition and 2 deletions.
  1. +0 −1 gax/src/main/java/com/google/api/gax/rpc/Watchdog.java
  2. +1 −1 gax/src/test/java/com/google/api/gax/rpc/WatchdogTest.java
@@ -151,7 +151,6 @@ public boolean isTerminated() {
@Override
public void shutdownNow() {
future.cancel(true);
executor.shutdownNow();
}

@Override
@@ -191,7 +191,7 @@ public void testWatchdogBeingClosed() {

underTest.shutdownNow();
Mockito.verify(future).cancel(true);
Mockito.verify(mockExecutor).shutdownNow();
Mockito.verifyNoMoreInteractions(mockExecutor);
}

static class AccumulatingObserver<T> implements ResponseObserver<T> {

0 comments on commit 6241a21

Please sign in to comment.