From b2de67c922d3e57413a958308ebf8bc6ccbcdc1a Mon Sep 17 00:00:00 2001 From: Cyril David Date: Mon, 25 Jan 2021 19:24:17 -0800 Subject: [PATCH] Catch cmd.Execute error value --- internal/cli/clients_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/cli/clients_test.go b/internal/cli/clients_test.go index 329e26dd8..6b7e5112d 100644 --- a/internal/cli/clients_test.go +++ b/internal/cli/clients_test.go @@ -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"},