Skip to content

Commit

Permalink
test: fixing some function call to newer API version
Browse files Browse the repository at this point in the history
  • Loading branch information
nettoclaudio committed Jul 24, 2023
1 parent 0866593 commit 810662d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/tsurutests/templatemods_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func Test_DoNotReadBodyForStreamingRequests(t *testing.T) {
cli := tsuru.NewAPIClient(&tsuru.Configuration{
BasePath: srv.URL,
})
rsp, err := cli.AppApi.AppRestart(context.Background(), "myapp", nil)
rsp, err := cli.AppApi.AppRestart(context.Background(), "myapp", tsuru.AppStartStop{})
require.NoError(t, err)
data, err := ioutil.ReadAll(rsp.Body)
require.NoError(t, err)
Expand All @@ -73,7 +73,7 @@ func Test_AcceptPlainTextErrorResponses(t *testing.T) {
cli := tsuru.NewAPIClient(&tsuru.Configuration{
BasePath: srv.URL,
})
_, err := cli.AppApi.AppRestart(context.Background(), "myapp", nil)
_, err := cli.AppApi.AppRestart(context.Background(), "myapp", tsuru.AppStartStop{})
require.Error(t, err)
apiErr, ok := err.(tsuru.GenericOpenAPIError)
require.Equal(t, true, ok)
Expand All @@ -89,7 +89,7 @@ func Test_HasStatusCodeInResponse(t *testing.T) {
cli := tsuru.NewAPIClient(&tsuru.Configuration{
BasePath: srv.URL,
})
_, err := cli.AppApi.AppRestart(context.Background(), "myapp", nil)
_, err := cli.AppApi.AppRestart(context.Background(), "myapp", tsuru.AppStartStop{})
require.Error(t, err)
apiErr, ok := err.(tsuru.GenericOpenAPIError)
require.Equal(t, true, ok)
Expand Down

0 comments on commit 810662d

Please sign in to comment.