Skip to content

Commit

Permalink
Init/shutdown platform mgr in TestCASESession
Browse files Browse the repository at this point in the history
Seems needed on Darwin.
  • Loading branch information
mlepage-google committed Feb 14, 2023
1 parent 134fed0 commit 42c8fbf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/protocols/secure_channel/tests/TestCASESession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1160,6 +1160,8 @@ int CASE_TestSecurePairing_Setup(void * inContext)
{
chip::Platform::MemoryInit();

chip::DeviceLayer::PlatformMgr().InitChipStack();

CHIP_ERROR err = CASETestSecurePairingSetup(inContext);
if (err != CHIP_NO_ERROR)
{
Expand All @@ -1186,6 +1188,7 @@ int CASE_TestSecurePairing_Teardown(void * inContext)
gCommissionerFabrics.DeleteAllFabrics();
gDeviceFabrics.DeleteAllFabrics();
static_cast<TestContext *>(inContext)->Shutdown();
chip::DeviceLayer::PlatformMgr().Shutdown();
return SUCCESS;
}

Expand Down

0 comments on commit 42c8fbf

Please sign in to comment.