Skip to content

Commit

Permalink
fix tests format
Browse files Browse the repository at this point in the history
  • Loading branch information
veceraj committed Dec 13, 2024
1 parent 50981ba commit 980d6d9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cmd/pbm-agent/commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand All @@ -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)
}
Expand All @@ -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)
}
Expand All @@ -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)
}
Expand Down

0 comments on commit 980d6d9

Please sign in to comment.