Skip to content

Commit e2c3f68

Browse files
chore: assertion changed to reflect second source of the data that causes additional successful pass
1 parent c01b8eb commit e2c3f68

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_splunk_addon.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,8 @@ def empty_method():
551551
result.stdout.fnmatch_lines_random(
552552
constants.TA_REQUIREMENTS_PASSED + constants.TA_REQUIREMENTS_FAILED
553553
)
554-
result.assert_outcomes(passed=len(constants.TA_REQUIREMENTS_PASSED), failed=1)
554+
result.assert_outcomes(passed=2*len(constants.TA_REQUIREMENTS_PASSED), failed=1)
555+
# 2*TA_REQUIREMENTS_PASSED as the successful data comes from 2 sources (log & xml)
555556

556557
# make sure that that we get a non '0' exit code for the testsuite as it contains failure
557558
assert result.ret != 0

0 commit comments

Comments
 (0)