fix(tests): higher max delay

This commit is contained in:
TriForMine
2021-04-10 23:58:36 +02:00
parent aae106ab71
commit 1b952b6713
2 changed files with 8 additions and 2 deletions
+4 -1
View File
@@ -45,7 +45,10 @@ async function ifItFailsBlameWolf(type: "getter" | "raw", custom = false) {
await message.addReaction(emojiId);
}
delayUntil(10000, () => cache.messages.get(message.id)?.reactions?.length > 0);
delayUntil(
10000,
() => cache.messages.get(message.id)?.reactions?.length > 0,
);
assertEquals(
await cache.messages
+4 -1
View File
@@ -61,7 +61,10 @@ async function ifItFailsBlameWolf(
await message.addReactions(emojiIds, ordered);
}
delayUntil(10000, () => cache.messages.get(message.id)?.reactions?.length === 2);
delayUntil(
10000,
() => cache.messages.get(message.id)?.reactions?.length === 2,
);
assertEquals(await cache.messages.get(message.id)?.reactions?.length, 2);
}