Fixed error printout in CASE15 Elections
Added a space before "and candidates"
Change-Id: I66c2d5968fc3e8a527eacb0dc256a09c54b29c8c
diff --git a/TestON/tests/HAstopNodes/HAstopNodes.py b/TestON/tests/HAstopNodes/HAstopNodes.py
index c6e584f..1088374 100644
--- a/TestON/tests/HAstopNodes/HAstopNodes.py
+++ b/TestON/tests/HAstopNodes/HAstopNodes.py
@@ -2866,10 +2866,15 @@
oldLeader = oldLeaders[ 0 ]
# Check that each node's candidate list is the same
+ candidateDiscrepancy = False # Boolean of candidate mismatches
for candidates in oldAllCandidates:
if set( candidates ) != set( oldCandidates ):
sameResult = main.FALSE
- failMessage += "and candidates"
+ candidateDiscrepancy = True
+
+ if candidateDiscrepancy:
+ failMessage += " and candidates"
+
utilities.assert_equals(
expect=main.TRUE,
actual=sameResult,