Skip to content

Commit a291606

Browse files
committed
fix: get exit code from the constant
1 parent 66280b5 commit a291606

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/nagios_simple.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def test_cache(self):
180180
line = buffer.getvalue().rstrip()
181181
logging.info("Retrieved buffer value: %s", line)
182182
logging.info("Retrieved exit code: %s", err.code)
183-
logging.info("Expected exit value: %s", (1, "WARNING"))
183+
logging.info("Expected exit value: %s", (NAGIOS_EXIT_WARNING[0], NAGIOS_EXIT_WARNING[1]))
184184
self.assertTrue(err.code == 1)
185185
self.assertTrue(line == "%s %s" % ("WARNING", message))
186186

0 commit comments

Comments
 (0)