test(opencode): await live provisioning cleanup
This commit is contained in:
parent
642cc16f65
commit
f0a5cf7617
1 changed files with 11 additions and 2 deletions
|
|
@ -161,13 +161,22 @@ liveDescribe('OpenCode team provisioning live e2e', () => {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
svc.stopTeam(teamName);
|
await svc.stopTeam(teamName);
|
||||||
await waitUntil(async () => {
|
await waitUntil(async () => {
|
||||||
const laneIndex = await readOpenCodeRuntimeLaneIndex(getTeamsBasePath(), teamName);
|
const laneIndex = await readOpenCodeRuntimeLaneIndex(getTeamsBasePath(), teamName);
|
||||||
return Object.keys(laneIndex.lanes).length === 0;
|
return Object.keys(laneIndex.lanes).length === 0;
|
||||||
}, 90_000);
|
}, 90_000);
|
||||||
} finally {
|
} finally {
|
||||||
svc.stopTeam(teamName);
|
await svc.stopTeam(teamName).catch(() => undefined);
|
||||||
|
await readinessBridge
|
||||||
|
.cleanupOpenCodeHosts({
|
||||||
|
reason: 'opencode-team-provisioning-live-e2e-cleanup',
|
||||||
|
mode: 'force',
|
||||||
|
projectPath: PROJECT_PATH,
|
||||||
|
staleAgeMs: null,
|
||||||
|
leaseStaleAgeMs: null,
|
||||||
|
})
|
||||||
|
.catch(() => undefined);
|
||||||
}
|
}
|
||||||
}, 300_000);
|
}, 300_000);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue