test: refactored test suites to eliminate time-based sleeps and polling loops

- Replaced time-based sleeps and polling loops with event-driven promise resolvers and fake timers across agent and tool tests.
- Migrated test suites to share in-memory auth storage and fixtures using lifecycle hooks.
- Updated catalog model definitions, metadata, and configurations.
This commit is contained in:
can1357
2026-08-13 19:30:27 +02:00
parent 28997c0d46
commit b279db1790
263 changed files with 4603 additions and 6625 deletions
+2 -2
View File
@@ -217,11 +217,11 @@ export class ChildProcess<In extends InMask = InMask> {
return this;
}
kill(reason?: Exception) {
kill(reason?: Exception, gracefulMs?: number) {
if (reason && !this.#exitReasonPending) this.#exitReasonPending = reason;
if (!this.proc.killed)
void Process.fromPid(this.proc.pid)
?.terminate()
?.terminate(gracefulMs === undefined ? undefined : { gracefulMs })
?.catch(e => void e);
}