Update several tests to accept empty string or "localhost"

For unix sockets the behavior of getpeername() is different on different OS

This required to add support of regex to the integration test framework
This commit is contained in:
Alexey Sokolov committed 2025-04-22 01:10:22 +01:00
1 parent d8234a1a71
commit 951c39479f
3 files changed
+61 -27

No files matched your search

+6 -6
View File
@@ -490,9 +490,9 @@ TEST_F(ZNCTest, ModpythonSaslAuth) {
client2.Write("AUTHENTICATE FOO");
client2.ReadUntil("AUTHENTICATE " + QByteArrayLiteral("Welcome").toBase64());
client2.Write("AUTHENTICATE +");
client2.ReadUntil(
":irc.znc.in 900 nick nick!user@localhost user :You are now logged in "
"as user");
client2.ReadUntilRe(
":irc.znc.in 900 nick nick!user@(localhost)? user :You are now logged "
"in as user");
}
TEST_F(ZNCTest, ModperlSaslAuth) {
@@ -547,9 +547,9 @@ TEST_F(ZNCTest, ModperlSaslAuth) {
client2.Write("AUTHENTICATE FOO");
client2.ReadUntil("AUTHENTICATE " + QByteArrayLiteral("Welcome").toBase64());
client2.Write("AUTHENTICATE +");
client2.ReadUntil(
":irc.znc.in 900 nick nick!user@localhost user :You are now logged in "
"as user");
client2.ReadUntilRe(
":irc.znc.in 900 nick nick!user@(localhost)? user :You are now logged "
"in as user");
}
} // namespace