diff --git a/__tests__/core/chatRoom.js b/__tests__/core/chatRoom.js
index <HASH>..<HASH> 100644
--- a/__tests__/core/chatRoom.js
+++ b/__tests__/core/chatRoom.js
@@ -314,7 +314,7 @@ describe('Core', () => {
             api.chatRoom.addMiddleware({
               name: 'chat middleware 2',
               priority: 2000,
-              say: async (connection, room, messagePayload) => {
+              say: (connection, room, messagePayload) => {
                 messagePayload.message = messagePayload.message + ' MIDDLEWARE 2'
                 return messagePayload
               }
Reverted last function which was still async.