Skip to content

Commit 18af39a

Browse files
author
Dhriti Chopra
committed
test(storage): keep default global executor alive for StorageDataClient
1 parent b5e9aeb commit 18af39a

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

  • java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage

java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/FakeServer.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,6 @@ static void injectIsolatedClient(Storage storage, ScheduledThreadPoolExecutor ex
111111

112112
java.lang.reflect.Field clientField = GrpcStorageImpl.class.getDeclaredField("storageClient");
113113
clientField.setAccessible(true);
114-
StorageClient oldClient = (StorageClient) clientField.get(impl);
115-
if (oldClient != null) {
116-
oldClient.close();
117-
}
118114
clientField.set(impl, isolatedClient);
119115
} catch (Exception e) {
120116
throw new RuntimeException("Failed to inject isolated StorageClient", e);

0 commit comments

Comments
 (0)