Skip to content

Commit

Permalink
test: cover 2 remaining lines
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Jan 14, 2021
1 parent 875497e commit e770789
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/corehttp/gateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ func TestUriQueryRedirect(t *testing.T) {
{"/ipns/?uri=ipns://" + cid, http.StatusMovedPermanently, "/ipns/" + cid},
{"/ipns/?uri=ipfs://" + cid, http.StatusMovedPermanently, "/ipfs/" + cid},
{"/ipfs/?uri=unsupported://" + cid, http.StatusBadRequest, ""},
{"/ipfs/?uri=invaliduri", http.StatusBadRequest, ""},
{"/ipfs/?uri=" + cid, http.StatusBadRequest, ""},
} {

Expand Down

0 comments on commit e770789

Please sign in to comment.