diff --git a/opendap/src/test/java/opendap/test/TestMisc.java b/opendap/src/test/java/opendap/test/TestMisc.java index 82e92bdf7b..40d9c40678 100644 --- a/opendap/src/test/java/opendap/test/TestMisc.java +++ b/opendap/src/test/java/opendap/test/TestMisc.java @@ -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)