attempt to fix test

This commit is contained in:
flux 2023-02-23 14:30:55 -08:00
parent f7a7ef361a
commit 2ddeb05f83
No known key found for this signature in database
GPG key ID: 9333B27816848A15

10
mtt.lua
View file

@ -1,5 +1,13 @@
mtt.register("send mail", function(callback)
local auth_handler = minetest.get_auth_handler()
if not auth_handler:get_auth("player1") then
auth_handler:create_auth("player1", "test")
end
if not auth_handler:get_auth("player2") then
auth_handler:create_auth("player2", "test")
end
-- send a mail
mail.send("player1", "player2", "something", "blah")
@ -7,4 +15,4 @@ mtt.register("send mail", function(callback)
local list2 = mail.getMessages("player2")
assert(list2 ~= nil and #list2 > 0)
callback()
end)
end)