fix: tweak sleep duration

This commit is contained in:
zyoshoka 2025-02-28 19:56:58 +09:00
parent 5756ed3185
commit 396ed09498
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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));
}