zblueslip: Simplify broken error message.

We were reporting 1 of 1 when 0 messages were
seen.
This commit is contained in:
Steve Howell
2020-04-24 20:11:43 +00:00
committed by showell
parent 951514dd7d
commit d9166e2ab1

View File

@@ -56,7 +56,7 @@ exports.make_zblueslip = function () {
for (const obj of lib.test_data[name]) {
const message = obj.message;
if (obj.count > 0) {
throw Error(`We saw ${obj.count} (expected ${obj.expected_count}) of '${name}': ${message}`);
throw Error(`We did not see expected ${obj.expected_count} of '${name}': ${message}`);
} else if (obj.count < 0) {
throw Error(`We saw ${obj.expected_count - obj.count} (expected ${obj.expected_count}) of '${name}': ${message}`);
}