From e1ad60af4fd267ac1df57748afc910b2ea26a8b4 Mon Sep 17 00:00:00 2001 From: Luca Matei Pintilie Date: Mon, 27 Oct 2025 19:08:32 +0100 Subject: [PATCH] tests(iid): Explicitly set fixed_irc_server These tests require that fixed_irc_server is set, and will fail if another test sets them. This may not have been a problem before, but since the catch2 update CI has encountered issues running these tests randomly, as the order of which tests are ran in is now random. --- tests/iid.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/iid.cpp b/tests/iid.cpp index dc264fd..17744dd 100644 --- a/tests/iid.cpp +++ b/tests/iid.cpp @@ -7,6 +7,7 @@ TEST_CASE("Irc user parsing") { + Config::set("fixed_irc_server", "", false); const std::map prefixes{{'!', 'a'}, {'@', 'o'}}; IrcUser user1("!nick!~some@host.bla", prefixes); CHECK(user1.nick == "nick"); @@ -23,6 +24,7 @@ TEST_CASE("Irc user parsing") TEST_CASE("multi-prefix") { + Config::set("fixed_irc_server", "", false); const std::map prefixes{{'!', 'a'}, {'@', 'o'}, {'~', 'f'}}; IrcUser user("!@~nick", prefixes); CHECK(user.nick == "nick"); @@ -47,6 +49,7 @@ namespace Catch TEST_CASE("Iid creation") { + Config::set("fixed_irc_server", "", false); const std::set chantypes {'&', '#', '+', '!'}; Iid iid1("foo%irc.example.org", chantypes); CHECK(std::to_string(iid1) == "foo%irc.example.org");