Skip to content

Commit

Permalink
Added a driveAndServiceIO after waiting for max in test where we shou…
Browse files Browse the repository at this point in the history
…ld wait for max to expire to ensure the run gets scheduled reliably
  • Loading branch information
lpbeliveau-silabs committed Aug 1, 2023
1 parent c7fb1d1 commit 1f56ddb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/tests/TestReadInteraction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1713,8 +1713,8 @@ void TestReadInteraction::TestSubscribeRoundtrip(nlTestSuite * apSuite, void * a
{
break;
}
ctx.GetIOContext().DriveIO();
}
ctx.GetIOContext().DriveIO();

NL_TEST_ASSERT(apSuite, engine->GetReportingEngine().IsRunScheduled());
delegate.mGotReport = false;
Expand Down Expand Up @@ -2347,8 +2347,8 @@ void TestReadInteraction::TestSubscribeInvalidAttributePathRoundtrip(nlTestSuite
{
break;
}
ctx.GetIOContext().DriveIO();
}
ctx.GetIOContext().DriveIO();

NL_TEST_ASSERT(apSuite, engine->GetReportingEngine().IsRunScheduled());
NL_TEST_ASSERT(apSuite, engine->GetReportingEngine().IsRunScheduled());
Expand Down

0 comments on commit 1f56ddb

Please sign in to comment.