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:
@@ -20,7 +20,6 @@ namespace UnitTest
|
||||
|
||||
class ThumbnailerTests
|
||||
: public ::testing::Test
|
||||
, public TraceBusRedirector
|
||||
{
|
||||
protected:
|
||||
void SetUp() override
|
||||
@@ -31,8 +30,6 @@ namespace UnitTest
|
||||
// was running, because the environment wasn't setup for it to save these settings.
|
||||
AZ::UserSettingsComponentRequestBus::Broadcast(&AZ::UserSettingsComponentRequests::DisableSaveOnFinalize);
|
||||
|
||||
TraceBusRedirector::BusConnect();
|
||||
|
||||
AZStd::string entityName("test");
|
||||
AZ::EntityId testEntityId;
|
||||
AzToolsFramework::EditorEntityContextRequestBus::BroadcastResult(
|
||||
@@ -61,8 +58,6 @@ namespace UnitTest
|
||||
|
||||
void TearDown() override
|
||||
{
|
||||
TraceBusRedirector::BusDisconnect();
|
||||
|
||||
AzToolsFramework::EditorEntityContextRequestBus::Broadcast(
|
||||
&AzToolsFramework::EditorEntityContextRequestBus::Events::DestroyEditorEntity,
|
||||
m_testEntity->GetId());
|
||||
|
||||
Reference in New Issue
Block a user