Skip to content

Commit

Permalink
instance-remove: removes from tests, duplicated success msg
Browse files Browse the repository at this point in the history
  • Loading branch information
arxdsilva committed Aug 29, 2017
1 parent fde9b70 commit 738dbf2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tsuru/client/services_test.go
Expand Up @@ -778,7 +778,6 @@ func (s *S) TestServiceInstanceRemoveRunWithForce(c *check.C) {
Stdout: &stdout,
Stderr: &stderr,
}
expected := "Service \"some-service-instance\" successfully removed!\n"
transport := cmdtest.ConditionalTransport{
Transport: cmdtest.Transport{Message: "", Status: http.StatusOK},
CondFunc: func(r *http.Request) bool {
Expand All @@ -791,8 +790,6 @@ func (s *S) TestServiceInstanceRemoveRunWithForce(c *check.C) {
cmd.Flags().Parse(true, []string{"-f", "-y"})
err := cmd.Run(&ctx, client)
c.Assert(err, check.IsNil)
obtained := stdout.String()
c.Assert(obtained, check.Equals, expected)
}

func (s *S) TestServiceInstanceRemoveFlags(c *check.C) {
Expand Down Expand Up @@ -833,7 +830,6 @@ func (s *S) TestServiceInstanceRemoveWithoutForce(c *check.C) {

func (s *S) TestServiceInstanceRemoveWithAppBindWithFlags(c *check.C) {
var stdout, stderr bytes.Buffer
expected := `Service "mongodb" successfully removed!` + "\n"
ctx := cmd.Context{
Args: []string{"service-name", "mongodb"},
Stdout: &stdout,
Expand All @@ -850,8 +846,6 @@ func (s *S) TestServiceInstanceRemoveWithAppBindWithFlags(c *check.C) {
command.Flags().Parse(true, []string{"-f", "-y"})
err := command.Run(&ctx, client)
c.Assert(err, check.IsNil)
obtained := stdout.String()
c.Assert(obtained, check.Equals, expected)
}

func (s *S) TestServiceInstanceGrantInfo(c *check.C) {
Expand Down

0 comments on commit 738dbf2

Please sign in to comment.