Skip to content

Commit

Permalink
Catch cmd.Execute error value
Browse files Browse the repository at this point in the history
  • Loading branch information
cyx committed Jan 26, 2021
1 parent d0bf6f5 commit b2de67c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/cli/clients_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ func TestClientsListCmd(t *testing.T) {
}

cmd := clientsListCmd(cli)
cmd.Execute()

if err := cmd.Execute(); err != nil {
t.Fatal(err)
}

expectTable(t, stdout.String(),
[]string{"NAME", "TYPE", "CLIENT ID", "CALLBACKS"},
Expand Down

0 comments on commit b2de67c

Please sign in to comment.