Skip to content

Commit

Permalink
Follow API changes in swagger-generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
yugui committed Jun 17, 2017
1 parent 89b184a commit 4fe7058
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func TestEchoClient(t *testing.T) {
}

cl := echo.NewEchoServiceApiWithBasePath("http://localhost:8080")
resp, err := cl.Echo("foo")
resp, _, err := cl.Echo("foo")
if err != nil {
t.Errorf(`cl.Echo("foo") failed with %v; want success`, err)
}
Expand All @@ -35,7 +35,7 @@ func TestEchoBodyClient(t *testing.T) {

cl := echo.NewEchoServiceApiWithBasePath("http://localhost:8080")
req := echo.ExamplepbSimpleMessage{Id: "foo"}
resp, err := cl.EchoBody(req)
resp, _, err := cl.EchoBody(req)
if err != nil {
t.Errorf("cl.EchoBody(%#v) failed with %v; want success", req, err)
}
Expand All @@ -56,7 +56,7 @@ func TestAbitOfEverythingClient(t *testing.T) {
}

func testABEClientCreate(t *testing.T, cl *abe.ABitOfEverythingServiceApi) {
want := abe.ExamplepbABitOfEverything{
want := &abe.ExamplepbABitOfEverything{
FloatValue: 1.5,
DoubleValue: 2.5,
Int64Value: "4294967296",
Expand All @@ -73,7 +73,7 @@ func testABEClientCreate(t *testing.T, cl *abe.ABitOfEverythingServiceApi) {
Sint64Value: "4611686018427387903",
NonConventionalNameValue: "camelCase",
}
resp, err := cl.Create(
resp, _, err := cl.Create(
want.FloatValue,
want.DoubleValue,
want.Int64Value,
Expand Down Expand Up @@ -148,7 +148,7 @@ func testABEClientCreateBody(t *testing.T, cl *abe.ABitOfEverythingServiceApi) {
"b": {Name: "y", Amount: 2},
},
}
resp, err := cl.CreateBody(want)
resp, _, err := cl.CreateBody(want)
if err != nil {
t.Errorf("cl.CreateBody(%#v) failed with %v; want success", want, err)
}
Expand Down

0 comments on commit 4fe7058

Please sign in to comment.