#191860 - retry if command is not found

This commit is contained in:
Sandeep Somavarapu
2023-09-06 09:36:50 +02:00
parent 3e6068253b
commit 7a0fecc0a7
4 changed files with 44 additions and 8 deletions

View File

@@ -254,6 +254,10 @@ export class Code {
return this.driver.getLogs();
}
wait(millis: number): Promise<void> {
return new Promise((resolve, reject) => setTimeout(resolve, millis));
}
private async poll<T>(
fn: () => Promise<T>,
acceptFn: (result: T) => boolean,