Skip to content

Commit

Permalink
refactor: rename to StatusBetween
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Sep 7, 2023
1 parent ea6c410 commit 0244688
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/path_gateway_ipns_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -68,7 +68,7 @@ func TestGatewayIPNSPath(t *testing.T) {
Request: Request().
Path("/ipns/{{name}}", ipnsV1V2BrokenSigV2),
Response: Expect().
StatusRange(500, 599),
StatusBetween(500, 599),
},
}

Expand Down
2 changes: 1 addition & 1 deletion tooling/test/sugar.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check warning on line 160 in tooling/test/sugar.go

View check run for this annotation

Codecov / codecov/patch

tooling/test/sugar.go#L157-L160

Added lines #L157 - L160 were not covered by tests
Expand Down

0 comments on commit 0244688

Please sign in to comment.