From 6a26ed5897f9e9def1ef96c08211c123313b387b Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 12 Sep 2021 20:10:49 +0200 Subject: [PATCH] banner: fix test that was enforcing the old behavior --- src/laws.test.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/laws.test.c b/src/laws.test.c index ed66cc941..7d4d468fe 100644 --- a/src/laws.test.c +++ b/src/laws.test.c @@ -1312,7 +1312,6 @@ static void test_banner_cmd(CuTest *tc) { order *ord; test_setup(); - mt_create_error(125); mt_create_va(mt_new("changebanner", NULL), "value:string", MT_NEW_END); u = test_create_unit(f = test_create_faction(), test_create_region(0, 0, NULL)); @@ -1325,8 +1324,8 @@ static void test_banner_cmd(CuTest *tc) { ord = create_order(K_BANNER, f->locale, NULL); banner_cmd(u, ord); - CuAssertStrEquals(tc, "Hodor!", faction_getbanner(f)); - CuAssertPtrNotNull(tc, test_find_messagetype(u->faction->msgs, "error125")); + CuAssertStrEquals(tc, NULL, faction_getbanner(f)); + CuAssertPtrNotNull(tc, test_find_messagetype(u->faction->msgs, "changebanner")); free_order(ord); test_clear_messages(f);