Skip to content

Commit 01be312

Browse files
author
Harshavardhan
committed
Fix slowness issue of the test case
1 parent 6055adc commit 01be312

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

gcp-observability/src/test/java/io/grpc/gcp/observability/GcpObservabilityTest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,9 @@ public void run() {
195195
InternalLoggingServerInterceptor.Factory serverInterceptorFactory =
196196
mock(InternalLoggingServerInterceptor.Factory.class);
197197
when(serverInterceptorFactory.create()).thenReturn(serverInterceptor);
198-
199-
try (GcpObservability unused =
200-
GcpObservability.grpcInit(
201-
sink, config, channelInterceptorFactory, serverInterceptorFactory)) {
198+
try {
199+
GcpObservability observability = GcpObservability.grpcInit(
200+
sink, config, channelInterceptorFactory, serverInterceptorFactory);
202201
List<?> configurators = InternalConfiguratorRegistry.getConfigurators();
203202
assertThat(configurators).hasSize(1);
204203
ObservabilityConfigurator configurator = (ObservabilityConfigurator) configurators.get(0);

0 commit comments

Comments
 (0)