mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 08:30:22 +00:00
test: migrate suites to e2e coverage layout
This commit is contained in:
@@ -187,7 +187,8 @@ export function getActiveTaskCount(): number {
|
||||
* already executing are waited on.
|
||||
*/
|
||||
export function waitForActiveTasks(timeoutMs: number): Promise<{ drained: boolean }> {
|
||||
const POLL_INTERVAL_MS = 250;
|
||||
// Keep shutdown/drain checks responsive without busy looping.
|
||||
const POLL_INTERVAL_MS = 50;
|
||||
const deadline = Date.now() + timeoutMs;
|
||||
const activeAtStart = new Set<number>();
|
||||
for (const state of lanes.values()) {
|
||||
|
||||
Reference in New Issue
Block a user