Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
britzl committed Jun 12, 2024
1 parent 641624f commit 2e4a187
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions nakama/engine/test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,9 @@ function M.socket_connect(socket, callback)
callback(result)
end

function M.socket_send(socket, message, callback)
function M.socket_send(socket, message)
table.insert(socket_send_queue, message)
local result = {}
callback(result)
callback({})
end


Expand Down
4 changes: 2 additions & 2 deletions nakama/socket.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ local function socket_send(socket, message, callback)
socket.engine.socket_send(socket, message)
else
socket.engine.socket_send(socket, message)
callback(true)
callback({})
end
else
return async(function(done)
Expand All @@ -44,7 +44,7 @@ local function socket_send(socket, message, callback)
socket.engine.socket_send(socket, message)
else
socket.engine.socket_send(socket, message)
done(true)
done({})
end
end)
end
Expand Down

0 comments on commit 2e4a187

Please sign in to comment.