From fc15ff09c08ce911d533a568b2f1e06b908a2445 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Mon, 15 Feb 2021 20:58:52 +0100 Subject: [PATCH] fix testWhoisUser for charybdis. --- irctest/server_tests/test_user_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irctest/server_tests/test_user_commands.py b/irctest/server_tests/test_user_commands.py index c185885..6b858c8 100644 --- a/irctest/server_tests/test_user_commands.py +++ b/irctest/server_tests/test_user_commands.py @@ -29,7 +29,7 @@ class WhoisTestCase(cases.BaseServerTestCase): self.assertEqual(whois_user.command, RPL_WHOISUSER) # " * :" self.assertEqual(whois_user.params[1], nick) - self.assertEqual(whois_user.params[2], '~' + username) + self.assertIn(whois_user.params[2], ('~' + username, '~' + username[0:9])) # dumb regression test for oragono/oragono#355: self.assertNotIn(whois_user.params[3], [nick, username, '~' + username, realname]) self.assertEqual(whois_user.params[5], realname)