mirror of
https://github.com/znc/znc.git
synced 2026-05-02 03:22:33 +02:00
Switch integration test to mostly use unix sockets
By not using the same hardcoded number for every test, we can parallelize the test now. There are several cases remaining where we can't easily use unix sockets (e.g. QSslSocket or imapauth module), for that ask kernel what port number is currently free to use. This is a bit racy though.
This commit is contained in:
@@ -491,7 +491,7 @@ TEST_F(ZNCTest, ModpythonSaslAuth) {
|
||||
client2.ReadUntil("AUTHENTICATE " + QByteArrayLiteral("Welcome").toBase64());
|
||||
client2.Write("AUTHENTICATE +");
|
||||
client2.ReadUntil(
|
||||
":irc.znc.in 900 nick nick!user@127.0.0.1 user :You are now logged in "
|
||||
":irc.znc.in 900 nick nick!user@localhost user :You are now logged in "
|
||||
"as user");
|
||||
}
|
||||
|
||||
@@ -548,7 +548,7 @@ TEST_F(ZNCTest, ModperlSaslAuth) {
|
||||
client2.ReadUntil("AUTHENTICATE " + QByteArrayLiteral("Welcome").toBase64());
|
||||
client2.Write("AUTHENTICATE +");
|
||||
client2.ReadUntil(
|
||||
":irc.znc.in 900 nick nick!user@127.0.0.1 user :You are now logged in "
|
||||
":irc.znc.in 900 nick nick!user@localhost user :You are now logged in "
|
||||
"as user");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user