Update tests/messages/create_message.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>
This commit is contained in:
TriForMine
2021-04-13 13:53:27 +02:00
committed by GitHub
parent 18a20f0cbf
commit f103c733f4

View File

@@ -24,7 +24,7 @@ async function ifItFailsBlameWolf(
},
};
} else if (content === "reply") {
const message = await sendMessage(channel?.id!, "Test Message");
const message = await sendMessage(channel!.id, "Test Message");
assertExists(message);
// Wait few seconds for the channel create event to arrive and cache it
await delayUntil(10000, () => cache.messages.has(message.id));