control seed during unit tests
parent
37c5daaa0d
commit
bdadbaa92b
|
@ -151,5 +151,3 @@ if minetest then
|
|||
else
|
||||
stm.base_path = './mods/stm/'
|
||||
end
|
||||
|
||||
math.randomseed(os.time())
|
|
@ -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)()
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue