Skip to content

Commit

Permalink
Small refactoring to make travis output more useful.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkeeler committed Apr 12, 2019
1 parent e95394b commit 76c849f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions command/acl/policy/create/policy_create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/hashicorp/consul/agent"
"github.com/hashicorp/consul/api"
"github.com/hashicorp/consul/logger"
"github.com/hashicorp/consul/testrpc"
"github.com/hashicorp/consul/sdk/testutil"
"github.com/hashicorp/consul/testrpc"
"github.com/mitchellh/cli"
"github.com/stretchr/testify/require"
)
Expand Down Expand Up @@ -74,8 +74,8 @@ func TestPolicyCreateCommand(t *testing.T) {
}

code := cmd.Run(args)
require.Equal(code, 0)
require.Empty(ui.ErrorWriter.String())
require.Equal(code, 0)

conf := api.DefaultConfig()
conf.Address = a.HTTPAddr()
Expand Down
4 changes: 2 additions & 2 deletions command/acl/token/create/token_create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"github.com/hashicorp/consul/agent"
"github.com/hashicorp/consul/api"
"github.com/hashicorp/consul/logger"
"github.com/hashicorp/consul/testrpc"
"github.com/hashicorp/consul/sdk/testutil"
"github.com/hashicorp/consul/testrpc"
"github.com/mitchellh/cli"
"github.com/stretchr/testify/require"
)
Expand Down Expand Up @@ -79,8 +79,8 @@ func TestTokenCreateCommand(t *testing.T) {
}

code := cmd.Run(args)
require.Equal(code, 0)
require.Empty(ui.ErrorWriter.String())
require.Equal(code, 0)
}

// create with accessor and secret
Expand Down

0 comments on commit 76c849f

Please sign in to comment.