control seed during unit tests

master
kaen 2016-08-20 21:51:27 -07:00
parent 37c5daaa0d
commit bdadbaa92b
3 changed files with 2 additions and 3 deletions

View File

@ -151,5 +151,3 @@ if minetest then
else
stm.base_path = './mods/stm/'
end
math.randomseed(os.time())

View File

@ -47,6 +47,7 @@ for k,v in pairs(_G) do
dofile("unittest/mocks/" .. name)
end
end
math.randomseed(1337)
if oldFunction then oldFunction() end
end
end)()

View File

@ -5,7 +5,7 @@ function TestHistory:testPopulate()
end
function TestHistory:testSimulate()
local sim_time = 0.05 *24*60*60
local sim_time = 0.1 *24*60*60
-- TODO: uncomment this line when physics stop being screwy
-- MapData.get_node = MapData.get_node_mock_wavy