fix(tests): higher max delay

This commit is contained in:
TriForMine
2021-04-10 23:54:56 +02:00
parent 0739826e7a
commit aae106ab71
20 changed files with 37 additions and 37 deletions
+2 -2
View File
@@ -42,7 +42,7 @@ Deno.test({
name: "delete-channel",
});
// wait 5 seconds to give it time for CHANNEL_CREATE event
delayUntil(3000, () => cache.channels.has(channel.id));
delayUntil(10000, () => cache.channels.has(channel.id));
// Make sure the channel was created.
if (!cache.channels.has(channel.id)) {
throw new Error(
@@ -53,7 +53,7 @@ Deno.test({
// Delete the channel now without a reason
await deleteChannel(tempData.guildId, channel.id, "with a reason");
// wait 5 seconds to give it time for CHANNEL_DELETE event
delayUntil(3000, () => !cache.channels.has(channel.id));
delayUntil(10000, () => !cache.channels.has(channel.id));
// Make sure it is gone from cache
if (cache.channels.has(channel.id)) {
throw new Error(