Skip to content

Commit

Permalink
Testing URLs are provided by JETTY_FIXTURE for maintainability
Browse files Browse the repository at this point in the history
Signed-off-by: You Aoki <165284116+marinedayo@users.noreply.github.com>
  • Loading branch information
marinedayo committed Apr 17, 2024
1 parent 8f01a11 commit 53b341a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void getRequest() throws Exception {

@Test
public void eventGoesToAppenders() throws Exception {
URL url = new URL("http://localhost:" + RANDOM_SERVER_PORT + "/path/foo%20bar;param?query#fragment");
URL url = new URL(JETTY_FIXTURE.getUrl() + "path/foo%20bar;param?query#fragment");
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setDoInput(true);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void getRequest() throws Exception {

@Test
public void eventGoesToAppenders() throws Exception {
URL url = new URL("http://localhost:" + RANDOM_SERVER_PORT + "/path/foo%20bar;param?query#fragment");
URL url = new URL(JETTY_FIXTURE.getUrl() + "path/foo%20bar;param?query#fragment");
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setDoInput(true);

Expand Down

0 comments on commit 53b341a

Please sign in to comment.