From d9166e2ab1988ab912ba486d75b79e67009f7366 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Fri, 24 Apr 2020 20:11:43 +0000 Subject: [PATCH] zblueslip: Simplify broken error message. We were reporting 1 of 1 when 0 messages were seen. --- frontend_tests/zjsunit/zblueslip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend_tests/zjsunit/zblueslip.js b/frontend_tests/zjsunit/zblueslip.js index 3e4c922d34..539de29f02 100644 --- a/frontend_tests/zjsunit/zblueslip.js +++ b/frontend_tests/zjsunit/zblueslip.js @@ -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}`); }