forked from github/server
fix intermittent test caused by produceexp
This commit is contained in:
parent
9a7da6aea3
commit
d2291d03c8
|
@ -8,6 +8,7 @@ function setup()
|
||||||
eressea.settings.set("rules.food.flags", "4")
|
eressea.settings.set("rules.food.flags", "4")
|
||||||
eressea.settings.set("rules.ship.storms", "0")
|
eressea.settings.set("rules.ship.storms", "0")
|
||||||
eressea.settings.set("rules.encounters", "0")
|
eressea.settings.set("rules.encounters", "0")
|
||||||
|
eressea.settings.set("study.produceexp", "0")
|
||||||
end
|
end
|
||||||
|
|
||||||
function test_calendar()
|
function test_calendar()
|
||||||
|
@ -57,6 +58,7 @@ function test_dwarf_bonus()
|
||||||
u.building = building.create(r, "mine")
|
u.building = building.create(r, "mine")
|
||||||
u.building.size = 10
|
u.building.size = 10
|
||||||
u:add_item("money", 500) -- maintenance
|
u:add_item("money", 500) -- maintenance
|
||||||
|
assert_equal(1, u:get_skill("mining"))
|
||||||
process_orders()
|
process_orders()
|
||||||
assert_equal(70, u:get_item("iron"))
|
assert_equal(70, u:get_item("iron"))
|
||||||
assert_equal(70, r:get_resource("iron"))
|
assert_equal(70, r:get_resource("iron"))
|
||||||
|
|
Loading…
Reference in New Issue