chore(llm): try to fix flaky test

This commit is contained in:
Elian Doran
2025-10-09 10:40:35 +03:00
parent 3a3cb0c68d
commit 8ac0425ca5
2 changed files with 10 additions and 1 deletions

View File

@@ -54,3 +54,11 @@ export function trimIndentation(strings: TemplateStringsArray, ...values: any[])
}
return output.join("\n");
}
export function flushPromises() {
return new Promise(setImmediate);
}
export function sleepFor(duration: number) {
return new Promise(resolve => setTimeout(resolve, duration));
}