Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

Commit 6241a21

Browse files
rgrebskiRadek Grebski
andauthored
fix: Watchdog.shutdownNow() does not shutdown executor (#1158)
Co-authored-by: Radek Grebski <[email protected]>
1 parent 2c56c79 commit 6241a21

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

gax/src/main/java/com/google/api/gax/rpc/Watchdog.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ public boolean isTerminated() {
151151
@Override
152152
public void shutdownNow() {
153153
future.cancel(true);
154-
executor.shutdownNow();
155154
}
156155

157156
@Override

gax/src/test/java/com/google/api/gax/rpc/WatchdogTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public void testWatchdogBeingClosed() {
191191

192192
underTest.shutdownNow();
193193
Mockito.verify(future).cancel(true);
194-
Mockito.verify(mockExecutor).shutdownNow();
194+
Mockito.verifyNoMoreInteractions(mockExecutor);
195195
}
196196

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

0 commit comments

Comments
 (0)