Skip to content

Commit e26f895

Browse files
committed
Used unique port numbers during integration test
1 parent 95f7653 commit e26f895

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ayza/src/test/java/nl/altindag/ssl/trustmanager/HotSwappableX509ExtendedTrustManagerIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,14 @@ void executeHttpsRequestWithExistingSslSocketFactoryContainingASwappedUnsafeTrus
9494
.withNeedClientAuthentication()
9595
.build();
9696

97-
Server server = Server.createDefault(sslFactoryForServer, 7984);
97+
Server server = Server.createDefault(sslFactoryForServer, 7985);
9898

9999
KeyStore trustStoreWithClientTwo = KeyStoreUtils.loadKeyStore("keystore/client-server/client-two/truststore.jks", "secret".toCharArray());
100100
X509ExtendedTrustManager trustManagerWithClientTwo = TrustManagerUtils.createTrustManager(trustStoreWithClientTwo);
101101
TrustManagerUtils.swapTrustManager(trustManager, trustManagerWithClientTwo);
102102
SSLSessionUtils.invalidateCaches(sslSessionContext);
103103

104-
HttpsURLConnection connection = (HttpsURLConnection) new URL("https://localhost:7984/api/hello").openConnection();
104+
HttpsURLConnection connection = (HttpsURLConnection) new URL("https://localhost:7985/api/hello").openConnection();
105105
connection.setSSLSocketFactory(sslSocketFactory);
106106
connection.setRequestMethod("GET");
107107

0 commit comments

Comments
 (0)