fix: close logging-channels when closing channels (#5592)

Co-authored-by: kornes <28986062+kornes@users.noreply.github.com>
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
nerix
2024-09-14 12:17:31 +02:00
committed by GitHub
parent 2afa227139
commit 694cc2dbff
13 changed files with 106 additions and 15 deletions
+9 -2
View File
@@ -8,6 +8,7 @@
#include "mocks/BaseApplication.hpp"
#include "mocks/Channel.hpp"
#include "mocks/Helix.hpp"
#include "mocks/Logging.hpp"
#include "mocks/TwitchIrcServer.hpp"
#include "singletons/Emotes.hpp"
#include "singletons/Paths.hpp"
@@ -69,6 +70,12 @@ public:
return &this->seventvEmotes;
}
ILogging *getChatLogger() override
{
return &this->logging;
}
mock::EmptyLogging logging;
AccountController accounts;
mock::MockTwitchIrcServer twitch;
Emotes emotes;
@@ -133,9 +140,9 @@ protected:
void TearDown() override
{
this->mockApplication.reset();
this->mockHelix.reset();
this->channelPtr.reset();
this->mockHelix.reset();
this->mockApplication.reset();
}
std::unique_ptr<MockApplication> mockApplication;