diff --git a/tests/path_gateway_ipns_test.go b/tests/path_gateway_ipns_test.go index 351e70f00..d97a84459 100644 --- a/tests/path_gateway_ipns_test.go +++ b/tests/path_gateway_ipns_test.go @@ -32,14 +32,14 @@ func TestGatewayIPNSPath(t *testing.T) { Request: Request(). Path("/ipns/{{name}}", ipnsV1), Response: Expect(). - StatusRange(500, 599), + StatusBetween(500, 599), }, { Name: "GET an IPNS Path (V1+V2) with broken ValueV1 from the gateway fails with 5xx", Request: Request(). Path("/ipns/{{name}}", ipnsV1V2BrokenValueV1), Response: Expect(). - StatusRange(500, 599), + StatusBetween(500, 599), }, { Name: "GET an IPNS Path (V1+V2) with broken SignatureV1, but valid SignatureV2 succeeds", @@ -68,7 +68,7 @@ func TestGatewayIPNSPath(t *testing.T) { Request: Request(). Path("/ipns/{{name}}", ipnsV1V2BrokenSigV2), Response: Expect(). - StatusRange(500, 599), + StatusBetween(500, 599), }, } diff --git a/tooling/test/sugar.go b/tooling/test/sugar.go index ab8c04b0a..62b577b10 100644 --- a/tooling/test/sugar.go +++ b/tooling/test/sugar.go @@ -154,7 +154,7 @@ func (e ExpectBuilder) Status(statusCode int) ExpectBuilder { return e } -func (e ExpectBuilder) StatusRange(from, to int) ExpectBuilder { +func (e ExpectBuilder) StatusBetween(from, to int) ExpectBuilder { e.StatusCodeFrom_ = from e.StatusCodeTo_ = to return e