Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny0826 committed Apr 10, 2023
1 parent 60377ba commit 39e4fb5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,10 @@ func TestMoreInfo(t *testing.T) {
}

// Check if the output contains expected values
expectedOutput := "[Summary] Namespace: 1 Node: 1 Pod: 1 "
str := strings.Replace(buf.String(), "\n", "", -1)
if str != expectedOutput {
t.Errorf("Expected output: %s, got: %s", expectedOutput, buf.String())
if strings.Contains(buf.String(), "Namespace: 1") && strings.Contains(buf.String(), "Node: 1") && strings.Contains(buf.String(), "Pod: 1") {
t.Logf("MoreInfo output is correct")
} else {
t.Errorf("MoreInfo output is incorrect: %s", buf.String())
}
}

Expand Down

0 comments on commit 39e4fb5

Please sign in to comment.