From 980d6d9402fda3cce9b423151f97c60639d5041f Mon Sep 17 00:00:00 2001 From: Jacob Vecera Date: Fri, 13 Dec 2024 19:54:36 +0100 Subject: [PATCH] fix tests format --- cmd/pbm-agent/commands_test.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cmd/pbm-agent/commands_test.go b/cmd/pbm-agent/commands_test.go index 32d6c9b21..ca2eef6b5 100644 --- a/cmd/pbm-agent/commands_test.go +++ b/cmd/pbm-agent/commands_test.go @@ -14,7 +14,6 @@ import ( func TestRootCmd_NoArgs(t *testing.T) { rootCmd, _ := setupTestCmd() err := rootCmd.Execute() - if err == nil || !strings.Contains(err.Error(), "required flag mongodb-uri") { t.Fatal(err) } @@ -31,7 +30,6 @@ log: rootCmd, _ := setupTestCmd("--config", tmpConfig) err := rootCmd.Execute() - if err == nil || !strings.Contains(err.Error(), "required flag mongodb-uri") { t.Fatal(err) } @@ -51,7 +49,6 @@ func createTempConfigFile(content string) (string, func()) { func TestVersionCommand_Default(t *testing.T) { rootCmd, buf := setupTestCmd("version") err := rootCmd.Execute() - if err != nil { t.Fatal(err) } @@ -66,7 +63,6 @@ func TestVersionCommand_Default(t *testing.T) { func TestVersionCommand_Short(t *testing.T) { rootCmd, buf := setupTestCmd("version", "--short") err := rootCmd.Execute() - if err != nil { t.Fatal(err) }