Skip to content

Commit

Permalink
Initialize CHIP stack before running app tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arkq committed Sep 6, 2023
1 parent 6b708ab commit 086d53c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/tests/AppTestContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ namespace Test {
CHIP_ERROR AppContext::Init()
{
ReturnErrorOnFailure(Super::Init());
ReturnErrorOnFailure(chip::DeviceLayer::PlatformMgr().InitChipStack());
ReturnErrorOnFailure(chip::app::InteractionModelEngine::GetInstance()->Init(&GetExchangeManager(), &GetFabricTable(),
app::reporting::GetDefaultReportScheduler()));

Expand All @@ -57,6 +58,7 @@ void AppContext::Shutdown()
Access::ResetAccessControlToDefault();

chip::app::InteractionModelEngine::GetInstance()->Shutdown();
chip::DeviceLayer::PlatformMgr().Shutdown();
Super::Shutdown();
}

Expand Down

0 comments on commit 086d53c

Please sign in to comment.