Skip to content

Commit 26af266

Browse files
committed
test: wait for inbox idle in typescript tests
1 parent 2f9b436 commit 26af266

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

deltachat-jsonrpc/typescript/test/online.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,15 @@ describe("online tests", function () {
6464
await dc.rpc.setConfig(accountId1, "addr", account1.email);
6565
await dc.rpc.setConfig(accountId1, "mail_pw", account1.password);
6666
await dc.rpc.configure(accountId1);
67+
await waitForEvent(dc, "ImapInboxIdle", accountId1);
6768

6869
accountId2 = await dc.rpc.addAccount();
6970
await dc.rpc.batchSetConfig(accountId2, {
7071
addr: account2.email,
7172
mail_pw: account2.password,
7273
});
7374
await dc.rpc.configure(accountId2);
75+
await waitForEvent(dc, "ImapInboxIdle", accountId2);
7476
accountsConfigured = true;
7577
});
7678

0 commit comments

Comments
 (0)