Skip to content

Commit

Permalink
add test case for perf config breaking printing thresholds
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Nov 7, 2024
1 parent 35d63a3 commit 648aa08
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/snclient/perfconfig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ func TestCheckPerfConfig(t *testing.T) {
"output matches",
)
assert.NotContainsf(t, string(res.BuildPluginOutput()), "=0mib;", "must not contain 0mib")
// perf config should not break printing thresholds
assert.NotContainsf(t, string(res.BuildPluginOutput()), ";@0:0;", "must not contain ;@0:0;")

res = snc.RunCheck("check_uptime", []string{
"warn=uptime > 0",
Expand Down

0 comments on commit 648aa08

Please sign in to comment.