fix intermittent test caused by produceexp

This commit is contained in:
Enno Rehling 2017-09-04 14:38:39 +02:00
parent 9a7da6aea3
commit d2291d03c8
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,7 @@ function setup()
eressea.settings.set("rules.food.flags", "4")
eressea.settings.set("rules.ship.storms", "0")
eressea.settings.set("rules.encounters", "0")
eressea.settings.set("study.produceexp", "0")
end
function test_calendar()
@ -57,6 +58,7 @@ function test_dwarf_bonus()
u.building = building.create(r, "mine")
u.building.size = 10
u:add_item("money", 500) -- maintenance
assert_equal(1, u:get_skill("mining"))
process_orders()
assert_equal(70, u:get_item("iron"))
assert_equal(70, r:get_resource("iron"))