mirror of
https://github.com/znc/znc.git
synced 2026-06-23 11:32:06 +02:00
allow identifiers in the test setup
This commit is contained in:
@@ -72,11 +72,15 @@ Socket ZNCTest::ConnectClient() {
|
||||
return WrapIO(&sock);
|
||||
}
|
||||
|
||||
Socket ZNCTest::LoginClient() {
|
||||
Socket ZNCTest::LoginClient(QString identifier) {
|
||||
auto client = ConnectClient();
|
||||
client.Write("PASS :hunter2");
|
||||
client.Write("NICK nick");
|
||||
client.Write("USER user/test x x :x");
|
||||
if ( identifier.length() == 0 ) {
|
||||
client.Write("USER user/test x x :x");
|
||||
} else {
|
||||
client.Write("USER user@" + identifier.toUtf8() + "/test x x :x");
|
||||
}
|
||||
return client;
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ class ZNCTest : public testing::Test {
|
||||
|
||||
Socket ConnectIRCd();
|
||||
Socket ConnectClient();
|
||||
Socket LoginClient();
|
||||
Socket LoginClient(QString identifier = "");
|
||||
|
||||
std::unique_ptr<Process> Run();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user