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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user