From 2e5c614d4942fe622cee383a90170e2094be8831 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Wed, 10 Oct 2018 12:16:30 +0800 Subject: [PATCH 1/2] verify updatePetWithForm in go client --- samples/client/petstore/go/pet_api_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samples/client/petstore/go/pet_api_test.go b/samples/client/petstore/go/pet_api_test.go index 2cd099a59c8b..0f598fc5fd11 100644 --- a/samples/client/petstore/go/pet_api_test.go +++ b/samples/client/petstore/go/pet_api_test.go @@ -87,6 +87,9 @@ func TestUpdatePetWithForm(t *testing.T) { if r.StatusCode != 200 { t.Log(r) } + + // get the pet id from server to verify the update + isPetCorrect(t, 12830, "golang", "available") } func TestFindPetsByTag(t *testing.T) { From 4464753705f3be46dfcdc89ce5a511fff8628087 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Wed, 10 Oct 2018 12:26:58 +0800 Subject: [PATCH 2/2] update wording --- samples/client/petstore/go/pet_api_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/client/petstore/go/pet_api_test.go b/samples/client/petstore/go/pet_api_test.go index 0f598fc5fd11..0e23ca936e39 100644 --- a/samples/client/petstore/go/pet_api_test.go +++ b/samples/client/petstore/go/pet_api_test.go @@ -88,7 +88,7 @@ func TestUpdatePetWithForm(t *testing.T) { t.Log(r) } - // get the pet id from server to verify the update + // get the pet with id 12830 from server to verify the update isPetCorrect(t, 12830, "golang", "available") } @@ -304,3 +304,4 @@ func isPetCorrect(t *testing.T, id int64, name string, status string) { t.Log(r) } } +