Skip to content

Commit dffac4a

Browse files
committed
fix: cleans up FileWatcherCertificateProvider in XdsSecurityClientServerTest
1 parent 1958e42 commit dffac4a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

xds/src/test/java/io/grpc/xds/XdsSecurityClientServerTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,13 @@ void resolved() {
796796

797797
@Override
798798
public void shutdown() {
799+
for (EquivalentAddressGroup s : servers) {
800+
SslContextProviderSupplier sslContextProviderSupplier = s.getAttributes()
801+
.get(SecurityProtocolNegotiators.ATTR_SSL_CONTEXT_PROVIDER_SUPPLIER);
802+
if (sslContextProviderSupplier != null) {
803+
sslContextProviderSupplier.close();
804+
}
805+
}
799806
}
800807

801808
@Override

0 commit comments

Comments
 (0)