Skip to content

Commit

Permalink
fix: relax dag-cbor error check
Browse files Browse the repository at this point in the history
we should not care about body, we care about status code
  • Loading branch information
lidel authored Apr 17, 2024
1 parent 27038a7 commit 927503a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/path_gateway_dag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,7 @@ func TestPathing(t *testing.T) {
Path("/ipfs/{{cid}}/foo", dagJSONTraversalCID).
Query("format", "dag-json"),
Response: Expect().
Status(501).
Body(Contains("reading IPLD Kinds other than Links (CBOR Tag 42) is not implemented")),
Status(501), // reading IPLD Kinds other than Links (CBOR Tag 42) is not implemented
},
{
Name: "GET DAG-JSON traverses multiple links",
Expand Down Expand Up @@ -396,8 +395,7 @@ func TestPathing(t *testing.T) {
Path("/ipfs/{{cid}}/foo", dagCBORTraversalCID).
Query("format", "dag-cbor"),
Response: Expect().
Status(501).
Body(Contains("reading IPLD Kinds other than Links (CBOR Tag 42) is not implemented")),
Status(501), // reading IPLD Kinds other than Links (CBOR Tag 42) is not implemented
},
{
Name: "GET DAG-CBOR traverses multiple links",
Expand Down

0 comments on commit 927503a

Please sign in to comment.