Skip to content

Commit 86774ad

Browse files
authored
fix: improve flaky federation test (#15845)
1 parent de19d9a commit 86774ad

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/backend/test-federation/test/user.test.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,8 @@ describe('User', () => {
381381

382382
await alice.client.request('i/delete-account', { password: alice.password });
383383
// NOTE: user deletion query is slow
384-
await sleep(4000);
384+
// FIXME: ensure user is removed successfully
385+
await sleep(10000);
385386

386387
const following = await bob.client.request('users/following', { userId: bob.id });
387388
strictEqual(following.length, 0); // no following relation
@@ -480,7 +481,8 @@ describe('User', () => {
480481

481482
await aAdmin.client.request('admin/suspend-user', { userId: alice.id });
482483
// NOTE: user deletion query is slow
483-
await sleep(4000);
484+
// FIXME: ensure user is removed successfully
485+
await sleep(10000);
484486

485487
const following = await bob.client.request('users/following', { userId: bob.id });
486488
strictEqual(following.length, 0); // no following relation

0 commit comments

Comments
 (0)