mirror of https://github.com/zulip/zulip.git
zblueslip: Remove unused check_error().
This commit is contained in:
parent
2788ebdde7
commit
95b84c0057
|
@ -39,19 +39,6 @@ exports.make_zblueslip = function () {
|
|||
return lib.test_logs[name];
|
||||
};
|
||||
|
||||
lib.check_error = (isblueslip = false) => {
|
||||
return function (error) {
|
||||
if (isblueslip) {
|
||||
assert(error.blueslip, "Not a blueslip error.");
|
||||
return true;
|
||||
}
|
||||
// If an error was thrown by zblueslip, we know that that
|
||||
// error was not in the list of expeccted errors for the test.
|
||||
assert(!error.blueslip, "Error not in expected errors.");
|
||||
return true;
|
||||
};
|
||||
};
|
||||
|
||||
// Create logging functions
|
||||
Object.keys(opts).forEach(name => {
|
||||
if (!opts[name]) {
|
||||
|
|
Loading…
Reference in New Issue