mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
zblueslip: Simplify broken error message.
We were reporting 1 of 1 when 0 messages were seen.
This commit is contained in:
@@ -56,7 +56,7 @@ exports.make_zblueslip = function () {
|
|||||||
for (const obj of lib.test_data[name]) {
|
for (const obj of lib.test_data[name]) {
|
||||||
const message = obj.message;
|
const message = obj.message;
|
||||||
if (obj.count > 0) {
|
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) {
|
} else if (obj.count < 0) {
|
||||||
throw Error(`We saw ${obj.expected_count - obj.count} (expected ${obj.expected_count}) of '${name}': ${message}`);
|
throw Error(`We saw ${obj.expected_count - obj.count} (expected ${obj.expected_count}) of '${name}': ${message}`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user