Skip to content

Commit

Permalink
tsuru: use empty http.Client in plugin tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrestc committed Aug 17, 2018
1 parent 215310f commit 932ab31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tsuru/client/plugin_test.go
Expand Up @@ -38,7 +38,7 @@ func (s *S) TestPluginInstall(c *check.C) {
Args: []string{"myplugin", ts.URL},
Stdout: &stdout,
}
client := cmd.NewClient(nil, nil, manager)
client := cmd.NewClient(&http.Client{}, nil, manager)
command := PluginInstall{}
err := command.Run(&context, client)
c.Assert(err, check.IsNil)
Expand Down Expand Up @@ -73,7 +73,7 @@ func (s *S) TestPluginInstallError(c *check.C) {
Args: []string{"myplugin", ts.URL},
Stdout: &stdout,
}
client := cmd.NewClient(nil, nil, manager)
client := cmd.NewClient(&http.Client{}, nil, manager)
command := PluginInstall{}
err := command.Run(&context, client)
c.Assert(err, check.ErrorMatches, `Invalid status code reading plugin: 500 - "my err"`)
Expand Down Expand Up @@ -238,7 +238,7 @@ func (s *S) TestPluginRemove(c *check.C) {
Args: []string{"myplugin"},
Stdout: &stdout,
}
client := cmd.NewClient(nil, nil, manager)
client := cmd.NewClient(&http.Client{}, nil, manager)
command := PluginRemove{}
err := command.Run(&context, client)
c.Assert(err, check.IsNil)
Expand Down

0 comments on commit 932ab31

Please sign in to comment.