Skip to content

Commit

Permalink
return-not-check
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Tanna committed Oct 25, 2022
1 parent 0732da5 commit b04a972
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions internal/test/issues/issue-312/issue_test.go
Expand Up @@ -26,7 +26,7 @@ func TestClient_WhenPathHasColon_RequestHasCorrectPath(t *testing.T) {
assert.Equal(t, "http://host/pets:validate", req.URL.String())
})

client.ValidatePetsWithResponse(context.Background(), ValidatePetsJSONRequestBody{
_, _ = client.ValidatePetsWithResponse(context.Background(), ValidatePetsJSONRequestBody{
Names: []string{"fido"},
})
doer.AssertExpectations(t)
Expand All @@ -43,7 +43,8 @@ func TestClient_WhenPathHasId_RequestHasCorrectPath(t *testing.T) {
assert.Equal(t, "/pets/id", req.URL.Path)
})
petID := "id"
client.GetPetWithResponse(context.Background(), petID)
_, err := client.GetPetWithResponse(context.Background(), petID)
assert.NoError(t, err)
doer.AssertExpectations(t)
}

Expand All @@ -58,7 +59,8 @@ func TestClient_WhenPathHasIdContainingReservedCharacter_RequestHasCorrectPath(t
assert.Equal(t, "http://host/pets/id1%2Fid2", req.URL.String())
})
petID := "id1/id2"
client.GetPetWithResponse(context.Background(), petID)
_, err := client.GetPetWithResponse(context.Background(), petID)
assert.NoError(t, err)
doer.AssertExpectations(t)
}

Expand Down

0 comments on commit b04a972

Please sign in to comment.