Skip to content

Commit 1acdeac

Browse files
committed
next try
1 parent fe8762e commit 1acdeac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/java/org/htmlunit/WebClient2Test.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,9 @@ public void localFile() throws Exception {
402402
fail("IOException expected");
403403
}
404404
catch (final IOException e) {
405-
assertEquals("Unsupported protocol 'c'", e.getMessage());
405+
assertTrue(e.getMessage(),
406+
e.getMessage().startsWith("Unsupported protocol '")
407+
|| e.getMessage().startsWith("no protocol: /"));
406408
}
407409
}
408410

0 commit comments

Comments
 (0)