From 20cd9e49294e10cc1c74def429c7aa4d218d9173 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Mon, 22 Jul 2024 22:27:02 +0200 Subject: [PATCH] fortify message test --- scripts/tests/shared/spells.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tests/shared/spells.lua b/scripts/tests/shared/spells.lua index 189f761b7..b02633776 100644 --- a/scripts/tests/shared/spells.lua +++ b/scripts/tests/shared/spells.lua @@ -191,5 +191,5 @@ function test_mountainguards_cant_attack() local ug = unit.create(f, r, 1, "mountainguard") ug:add_order("ATTACKIERE " .. itoa36(u.id)) process_orders() - assert_equal('race_no_attack', f.messages[1]) + assert_equal(1, f:count_msg_type('race_no_attack')) end