Skip to content

Commit

Permalink
use mustParse helper in test
Browse files Browse the repository at this point in the history
  • Loading branch information
magiconair committed Mar 6, 2018
1 parent 0a587f6 commit e60df88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion route/access_rules_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func TestAccessRules_AccessDeniedHTTP(t *testing.T) {
t.Errorf("%d: %s - failed to process access rules: %s",
i, tt.desc, err.Error())
}
tt.target.URL, _ = url.Parse("http://testing.test/")
tt.target.URL = mustParse("http://testing.test/")
if deny := tt.target.AccessDeniedHTTP(req); deny != tt.denied {
t.Errorf("%d: %s\ngot denied: %t\nwant denied: %t\n",
i, tt.desc, deny, tt.denied)
Expand Down

0 comments on commit e60df88

Please sign in to comment.