Skip to content

Commit

Permalink
Ensures that the expected error actually happens.
Browse files Browse the repository at this point in the history
In some environments unknownhost could be resolved via a DNS wildcard.
  • Loading branch information
andyHa committed Oct 24, 2018
1 parent cc50cfb commit 7e77472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/java/sirius/web/controller/TestController.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public void tunnelFallbackFor404(WebContext ctx) {
public void tunnelFallbackForError(WebContext ctx) {
ctx.respondWith()
.setHeader(HttpHeaderNames.CONTENT_TYPE, "text/test")
.tunnel("http://unknownHost",
.tunnel("http://localhost:1",
(code) -> ctx.respondWith()
.setHeader(HttpHeaderNames.CONTENT_TYPE, "text/test")
.tunnel("http://localhost:9999/service/json/test"));
Expand Down

0 comments on commit 7e77472

Please sign in to comment.