Skip to content

Commit

Permalink
Fix tests against newer Go
Browse files Browse the repository at this point in the history
Fixes #14
  • Loading branch information
jefferai committed Apr 6, 2019
1 parent eda1e5d commit d3fcbee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions handlers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,22 @@ func TestPrintablePathCheckHandler(t *testing.T) {
},

"invalid newline": {
path: "/invalid\n",
path: "/invalid%0A",
expectCode: http.StatusBadRequest,
},

"invalid carriage return": {
path: "/invalid\r",
path: "/invalid%0D",
expectCode: http.StatusBadRequest,
},

"invalid null": {
path: "/invalid\x00",
path: "/invalid%00",
expectCode: http.StatusBadRequest,
},

"invalid alternate status": {
path: "/invalid\n",
path: "/invalid%0A",
expectCode: http.StatusInternalServerError,
input: &HandlerInput{
ErrStatus: http.StatusInternalServerError,
Expand Down

0 comments on commit d3fcbee

Please sign in to comment.