Files
zeekay e450a908b1 Fix CI Quality Gate failures in hanzo-mcp
- Remove TODO comment in unified_backend.py (stub pattern detected)
- Replace bare except clauses with specific exception types:
  - OSError, FileNotFoundError for command availability checks
  - OSError, ImportError, ValueError, KeyError for TOML parsing
  - OSError, json.JSONDecodeError, KeyError for JSON config reading
  - OSError, PermissionError for file stat checks
- Fix blind exception assertion (Exception -> TypeError) in test
- Apply ruff format and import sorting fixes

All 14 anti-stub and CI tests now pass.
2026-01-17 21:46:04 -08:00

27 lines
779 B
JavaScript

"use strict";
/**
* Copyright (c) 2019, Microsoft Corporation (MIT License).
*/
Object.defineProperty(exports, "__esModule", { value: true });
function pollUntil(cb, timeout, interval) {
return new Promise(function (resolve, reject) {
var intervalId = setInterval(function () {
if (cb()) {
clearInterval(intervalId);
clearTimeout(timeoutId);
resolve();
}
}, interval);
var timeoutId = setTimeout(function () {
clearInterval(intervalId);
if (cb()) {
resolve();
}
else {
reject();
}
}, timeout);
});
}
exports.pollUntil = pollUntil;
//# sourceMappingURL=testUtils.test.js.map