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:
1 parent
63d10ccb17
commit
b642d92ce7
8 files changed
+152
-85
No files matched your search
@@ -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