Skip to content

Commit 4ca23a3

Browse files
committed
Makes updateAccountProfile test less flaky
1 parent baab090 commit 4ca23a3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/account.v1.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ describe('Account endpoints for v1.1 API', () => {
2525
await client.v1.updateAccountProfile({ description: user.description as string });
2626

2727
await client.v1.updateAccountSettings({ lang: 'en' });
28+
29+
// Wait 1sec to make sure the update happened
30+
await new Promise(resolve => setTimeout(resolve, 1000));
31+
2832
const updatedSettings = await client.v1.accountSettings();
2933
expect(updatedSettings.language).to.eq('en');
3034

0 commit comments

Comments
 (0)