Skip to content

Commit

Permalink
Moved ctx.GetIOContext().DriveIO(); after each tests to garantee this…
Browse files Browse the repository at this point in the history
… will run after maxInterval is expired
  • Loading branch information
lpbeliveau-silabs committed Aug 1, 2023
1 parent 1f56ddb commit 146cc01
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/app/tests/TestReadInteraction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2548,8 +2548,9 @@ void TestReadInteraction::TestPostSubscribeRoundtripStatusReportTimeout(nlTestSu
{
break;
}
ctx.GetIOContext().DriveIO();
}
ctx.GetIOContext().DriveIO();

delegate.mGotReport = false;
delegate.mNumAttributeResponse = 0;
ctx.ExpireSessionBobToAlice();
Expand Down Expand Up @@ -2905,8 +2906,8 @@ void TestReadInteraction::TestPostSubscribeRoundtripChunkStatusReportTimeout(nlT
{
break;
}
ctx.GetIOContext().DriveIO();
}
ctx.GetIOContext().DriveIO();

err = engine->GetReportingEngine().SetDirty(dirtyPath1);
NL_TEST_ASSERT(apSuite, err == CHIP_NO_ERROR);
Expand Down Expand Up @@ -3017,8 +3018,9 @@ void TestReadInteraction::TestPostSubscribeRoundtripChunkReportTimeout(nlTestSui
{
break;
}
ctx.GetIOContext().DriveIO();
}
ctx.GetIOContext().DriveIO();

err = engine->GetReportingEngine().SetDirty(dirtyPath1);
NL_TEST_ASSERT(apSuite, err == CHIP_NO_ERROR);
delegate.mGotReport = false;
Expand Down

0 comments on commit 146cc01

Please sign in to comment.