diff --git a/internal/test/issues/issue-312/issue_test.go b/internal/test/issues/issue-312/issue_test.go index 2bf46d8430..99f14e7d3b 100644 --- a/internal/test/issues/issue-312/issue_test.go +++ b/internal/test/issues/issue-312/issue_test.go @@ -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) @@ -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) } @@ -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) }