test: make it clear the user's own password isn't used in ImapAuthAllowedHosts

This commit is contained in:
Alhuda Khan committed 2026-10-24 11:37:07 +05:30
1 parent 064fa95318
commit 2045a50baa
1 file changed
+2 -1
+2 -1
View File
@@ -594,9 +594,10 @@ TEST_F(ZNCTest, ImapAuthAllowedHosts) {
ASSERT_TRUE(imap.listen(QHostAddress::LocalHost)) << imap.errorString().toStdString();
QFile conf(m_dir.path() + "/configs/znc.conf");
ASSERT_TRUE(conf.open(QIODevice::Append | QIODevice::Text));
// Pass is never checked here, imapauth asks the IMAP server instead
QTextStream(&conf) << R"(
<User foo>
Pass = plain#hunter2
Pass = plain#unused
Allow = 203.0.113.0/24
</User>
)";