Skip to content

Commit

Permalink
Do not match on host or port when comparing test results
Browse files Browse the repository at this point in the history
  • Loading branch information
tdrwenski committed Apr 10, 2024
1 parent 6f82b8d commit c34b4d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opendap/src/test/java/opendap/test/TestMisc.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ boolean process1(Testcase testcase) throws Exception {
}

boolean diff(Testcase testcase, String captured) throws Exception {
// don't match on port
captured = captured.replaceAll("localhost:\\d+", "localhost:8080");
// don't match on host and port
captured = captured.replaceAll("dods://.*:\\d+/", "dods://localhost:8080/");

// See if the cdl is in a file or a string.
if (System.getProperty("nodiff") != null)
Expand Down

0 comments on commit c34b4d6

Please sign in to comment.