Fix unit test after previous change

See #1949
This commit is contained in:
Alexey Sokolov
2025-05-10 20:59:40 +01:00
parent 3d1551b7f2
commit 4a15e1cf36

View File

@@ -293,6 +293,16 @@ TEST_F(ClientTest, OnUserNoticeMessage) {
}
TEST_F(ClientTest, OnUserJoinMessage) {
// JOIN only is sent to server after registration is complete, so make sure
// it is complete. But it requires clearing the state afterwards.
m_pTestSock->ReadLine("001");
m_pTestModule->vsHooks.clear();
m_pTestModule->vsMessages.clear();
m_pTestModule->vNetworks.clear();
m_pTestModule->vClients.clear();
m_pTestModule->vChannels.clear();
m_pTestSock->vsLines.clear();
CMessage msg("JOIN #chan key");
m_pTestModule->eAction = CModule::HALT;
m_pTestClient->ReadLine(msg.ToString());