Fix tests in AzToolsFramework now that the Trace bus is hooked

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-07-12 18:03:10 -07:00
parent c13720e255
commit 1dec9d4a9a
18 changed files with 77 additions and 46 deletions
@@ -23,8 +23,7 @@ namespace UnitTest
};
struct PerforceComponentFixture
: ::testing::Test
, TraceBusRedirector
: ScopedAllocatorSetupFixture
, SourceControlTest
{
@@ -40,7 +39,6 @@ namespace UnitTest
m_jobContext = aznew AZ::JobContext(*m_jobManager);
AZ::JobContext::SetGlobalContext(m_jobContext);
AZ::Debug::TraceMessageBus::Handler::BusConnect();
AZ::TickBus::AllowFunctionQueuing(true);
m_perforceComponent = AZStd::make_unique<MockPerforceComponent>();
@@ -52,8 +50,6 @@ namespace UnitTest
void TearDown() override
{
AZ::Debug::TraceMessageBus::Handler::BusDisconnect();
AZ::TickBus::AllowFunctionQueuing(false);
AZ::TickBus::ClearQueuedEvents();