test(pi): hold packaged rpc confirmation past timeout
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user