Skip to content

Commit e25e045

Browse files
Ahmet OzturkAhmet Ozturk
authored andcommitted
add comment to the failing test
1 parent 749ad57 commit e25e045

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/snclient/check_drivesize_windows_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ import (
99
func TestCheckDrivesize(t *testing.T) {
1010
snc := StartTestAgent(t, "")
1111

12+
// This is a untypical behavior. if a drive= or folder= argument is given, it should be visible again in the output.
13+
// This means the default detail syntax that uses "drive" and "drive_or_name" attribute should be set to the argument.
14+
// So the lowercase print of the drive letters is not done in default cases like the ones bellow.
1215
res := snc.RunCheck("check_drivesize", []string{"warn=free > 0", "crit=free > 0", "drive=c"})
1316
assert.Equalf(t, CheckExitCritical, res.State, "state critical")
1417
assert.Regexpf(t,

0 commit comments

Comments
 (0)