mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user