Skip to content

Commit

Permalink
Try using another port 8088 for running the webhook test (opensearch-…
Browse files Browse the repository at this point in the history
…project#999)

(cherry picked from commit 7db5afe)
  • Loading branch information
sujithvm committed Mar 18, 2021
1 parent 9d1aec9 commit 2832e06
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -446,11 +446,11 @@ public void httpsTest() throws Exception {

@Test
public void httpsTestPemDefault() throws Exception {

final int port = 8088;
TestHttpHandler handler = new TestHttpHandler();

server = ServerBootstrap.bootstrap()
.setListenerPort(8084)
.setListenerPort(port)
.setServerInfo("Test/1.1")
.setSslContext(createSSLContext())
.registerHandler("*", handler)
Expand All @@ -460,7 +460,7 @@ public void httpsTestPemDefault() throws Exception {
AuditMessage msg = MockAuditMessageFactory.validAuditMessage();
LoggingSink fallback = new LoggingSink("test", Settings.EMPTY, null, null);

String url = "https://localhost:8084/endpoint";
String url = "https://localhost:" + port + "/endpoint";

// test default with filepath
handler.reset();
Expand Down

0 comments on commit 2832e06

Please sign in to comment.