mirror of
https://github.com/openclaw/openclaw.git
synced 2026-10-03 17:53:39 +00:00
fix(scripts): export assertReliabilityForcedExit for package update tests
#158491 imports it from two infra tests after #159362 made it module-local, so the core test-types infra stripe failed on main with TS2459.
This commit is contained in:
parent
d09ffd2228
commit
da2efd83b8
1 changed files with 4 additions and 1 deletions
|
|
@ -87,7 +87,10 @@ export async function waitForReliabilityWorkerExit(
|
|||
});
|
||||
}
|
||||
|
||||
function assertReliabilityForcedExit(exit: ReliabilityWorkerExit, workerLabel: string): void {
|
||||
export function assertReliabilityForcedExit(
|
||||
exit: ReliabilityWorkerExit,
|
||||
workerLabel: string,
|
||||
): void {
|
||||
if (exit.code === 0) {
|
||||
throw new Error(`${workerLabel} exited cleanly before forced termination.`);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue