Skip to content

Commit f22d8f8

Browse files
cicoyleartursouzadapr-bot
authored
fix the orphaned channel due to the telemetry test (#999)
Signed-off-by: Cassandra Coyle <cassie@diagrid.io> Co-authored-by: Artur Souza <artursouza.ms@outlook.com> Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
1 parent b12c399 commit f22d8f8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sdk/src/test/java/io/dapr/client/DaprClientGrpcTelemetryTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,14 @@ public <ReqT, RespT> ServerCall.Listener<ReqT> interceptCall(ServerCall<ReqT, Re
191191
new GrpcChannelFacade(channel, daprHTTP), asyncStub, new DefaultObjectSerializer(), new DefaultObjectSerializer());
192192
}
193193

194+
195+
@AfterEach
196+
public void tearDown() throws Exception {
197+
if (client != null) {
198+
client.close();
199+
}
200+
}
201+
194202
@ParameterizedTest
195203
@MethodSource("data")
196204
public void invokeServiceVoidWithTracingTest(String traceparent, String tracestate, boolean expectGrpcTraceBin) throws IOException {

0 commit comments

Comments
 (0)