Fixed error printout in CASE15 Elections
Added a space before "and candidates"
Change-Id: I66c2d5968fc3e8a527eacb0dc256a09c54b29c8c
diff --git a/TestON/tests/HAsanity/HAsanity.py b/TestON/tests/HAsanity/HAsanity.py
index 3ea2cde..c64e05e 100644
--- a/TestON/tests/HAsanity/HAsanity.py
+++ b/TestON/tests/HAsanity/HAsanity.py
@@ -2780,10 +2780,14 @@
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,