mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-11-30 00:56:50 +00:00
Address LeakPresenceExtension warnings
This commit is contained in:
1 parent
335c079f82
commit
f7e4f4b5db
1 file changed
+6
-1
+6
-1
@@ -112,6 +112,8 @@ class OmnibusH2ServerTest {
|
||||
/// filled with the byte `b`
|
||||
private static final String FIXED_RESPONSE_PATH_PREFIX = "/fixed-response/";
|
||||
|
||||
private static final String TEST_DOMAIN = "foo.example.com";
|
||||
|
||||
private static NioEventLoopGroup nioEventLoopGroup;
|
||||
private static DefaultEventLoopGroup localEventLoopGroup;
|
||||
|
||||
@@ -127,7 +129,7 @@ class OmnibusH2ServerTest {
|
||||
final Instant now = Instant.now();
|
||||
|
||||
final char[] keyStorePassword = RandomStringUtils.insecure().nextAlphanumeric(16).toCharArray();
|
||||
final String domain = "foo.example.com";
|
||||
final String domain = TEST_DOMAIN;
|
||||
|
||||
final ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
|
||||
|
||||
@@ -168,6 +170,8 @@ class OmnibusH2ServerTest {
|
||||
static void tearDownAfterAll() throws InterruptedException {
|
||||
localEventLoopGroup.shutdownGracefully(1, 1000, TimeUnit.MILLISECONDS).sync();
|
||||
nioEventLoopGroup.shutdownGracefully(1, 1000, TimeUnit.MILLISECONDS).sync();
|
||||
|
||||
ReferenceCountUtil.release(sniMapping.map(TEST_DOMAIN));
|
||||
}
|
||||
|
||||
@ParameterizedTest
|
||||
@@ -777,6 +781,7 @@ class OmnibusH2ServerTest {
|
||||
private static SslContext sslContext() {
|
||||
try {
|
||||
return SslContextBuilder.forClient()
|
||||
.sslProvider(SslProvider.JDK)
|
||||
.trustManager(InsecureTrustManagerFactory.INSTANCE)
|
||||
.applicationProtocolConfig(new ApplicationProtocolConfig(
|
||||
ApplicationProtocolConfig.Protocol.ALPN,
|
||||
|
||||
Reference in new issue
Block a user