Skip to content

Commit

Permalink
fix: tweak sleep duration
Browse files Browse the repository at this point in the history
  • Loading branch information
zyoshoka committed Feb 28, 2025
1 parent 5756ed3 commit 396ed09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/backend/test-federation/test/user.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ describe('User', () => {
strictEqual(followers.length, 1); // followed by Bob

await alice.client.request('i/delete-account', { password: alice.password });
await sleep(1000);
await sleep();

const following = await bob.client.request('users/following', { userId: bob.id });
strictEqual(following.length, 0); // no following relation
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/test-federation/test/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export type Request = <

type Host = 'a.test' | 'b.test';

export async function sleep(ms = 200): Promise<void> {
export async function sleep(ms = 250): Promise<void> {
return new Promise(resolve => setTimeout(resolve, ms));
}

Expand Down

0 comments on commit 396ed09

Please sign in to comment.