test(pi): hold packaged rpc confirmation past timeout

This commit is contained in:
2026-08-26 07:40:55 +08:00
parent 4b75d201b8
commit 26d616c9b6
8 changed files with 105 additions and 0 deletions

View File

@@ -412,6 +412,11 @@ export class PiWorkerProcess {
return this.rpc.request<T>(command, options);
}
delayNextResponseForProof(commandType: string, delayMs: number): void {
if (!this.rpc) throw new Error('Pi worker has not started');
this.rpc.delayNextResponseForProof(commandType, delayMs);
}
send(command: PiRpcCommand): Promise<void> {
if (!this.rpc) {
return Promise.reject(new PiProcessError(