From b04a97292a7ddeaedd6aa392eaed2d9f3f1c021c Mon Sep 17 00:00:00 2001 From: Jamie Tanna Date: Tue, 16 Aug 2022 21:22:33 +0100 Subject: [PATCH] return-not-check --- internal/test/issues/issue-312/issue_test.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/internal/test/issues/issue-312/issue_test.go b/internal/test/issues/issue-312/issue_test.go index 2bf46d843..99f14e7d3 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) }