fix: tweak sleep duration
This commit is contained in:
parent
5756ed3185
commit
396ed09498
|
@ -380,7 +380,7 @@ describe('User', () => {
|
||||||
strictEqual(followers.length, 1); // followed by Bob
|
strictEqual(followers.length, 1); // followed by Bob
|
||||||
|
|
||||||
await alice.client.request('i/delete-account', { password: alice.password });
|
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 });
|
const following = await bob.client.request('users/following', { userId: bob.id });
|
||||||
strictEqual(following.length, 0); // no following relation
|
strictEqual(following.length, 0); // no following relation
|
||||||
|
|
|
@ -36,7 +36,7 @@ export type Request = <
|
||||||
|
|
||||||
type Host = 'a.test' | 'b.test';
|
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));
|
return new Promise(resolve => setTimeout(resolve, ms));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue