Skip to content

Commit

Permalink
fix(gateway): 400 for /ipns failures for now
Browse files Browse the repository at this point in the history
We will do follow-up in
ipfs/boxo#185
  • Loading branch information
lidel committed Feb 24, 2023
1 parent 0538cce commit e841c4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/cli/gateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func TestGateway(t *testing.T) {
t.Run("GET invalid IPNS root returns 500 (Internal Server Error)", func(t *testing.T) {
t.Parallel()
resp := client.Get("/ipns/QmInvalid/pleaseDontAddMe")
assert.Equal(t, 500, resp.StatusCode)
assert.Equal(t, 400, resp.StatusCode)
})

t.Run("GET IPNS path succeeds", func(t *testing.T) {
Expand Down Expand Up @@ -469,7 +469,7 @@ func TestGateway(t *testing.T) {

t.Run("not present IPNS key from node 1", func(t *testing.T) {
t.Parallel()
assert.Equal(t, 500, node1.GatewayClient().Get("/ipns/"+node2.PeerID().String()).StatusCode)
assert.Equal(t, 400, node1.GatewayClient().Get("/ipns/"+node2.PeerID().String()).StatusCode)
})
})

Expand Down

0 comments on commit e841c4b

Please sign in to comment.