diff --git a/test/test_discordbot.ts b/test/test_discordbot.ts
index 88866ca2301b6172a9c90776d248841c40240a32..45f820d8383fda07abc9167208c491d6bfda78ff 100644
--- a/test/test_discordbot.ts
+++ b/test/test_discordbot.ts
@@ -104,8 +104,9 @@ describe("DiscordBot", () => {
       let checkMsgSent = false;
       discordBot.SendMatrixMessage = (...args) => checkMsgSent = true;
 
-      discordBot.OnMessageUpdate(oldMsg, newMsg);
-      Chai.assert.equal(checkMsgSent, false);
+      discordBot.OnMessageUpdate(oldMsg, newMsg).then(() => {
+        Chai.assert.equal(checkMsgSent, false);
+      });
     });
 
     it("should send a matrix message on an edited discord message", () => {
@@ -130,8 +131,9 @@ describe("DiscordBot", () => {
       let checkMsgSent = false;
       discordBot.SendMatrixMessage = (...args) => checkMsgSent = true;
 
-      discordBot.OnMessageUpdate(oldMsg, newMsg);
-      Chai.assert.equal(checkMsgSent, true);
+      discordBot.OnMessageUpdate(oldMsg, newMsg).then(() => {
+        Chai.assert.equal(checkMsgSent, true);
+      });
     });
   });