use allSettled
This commit is contained in:
parent
83c15a77c3
commit
17fa584ea1
5 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…
Add table
Add a link
Reference in a new issue