use allSettled
This commit is contained in:
parent
e51fcf296f
commit
c4f40b3549
1 changed files with 15 additions and 22 deletions
|
|
@ -127,7 +127,7 @@ export class MockAgent extends MockClient {
|
|||
|
||||
public async finish(): Promise<void> {
|
||||
await this.client.setSetting("isSyncEnabled", true);
|
||||
await Promise.all(this.pendingActions);
|
||||
await Promise.allSettled(this.pendingActions);
|
||||
await this.client.waitAndStop();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue