From 146cc018aae7eb715b06b98b87ab58763d222201 Mon Sep 17 00:00:00 2001 From: lpbeliveau-silabs Date: Tue, 1 Aug 2023 16:11:06 -0400 Subject: [PATCH] Moved ctx.GetIOContext().DriveIO(); after each tests to garantee this will run after maxInterval is expired --- src/app/tests/TestReadInteraction.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/app/tests/TestReadInteraction.cpp b/src/app/tests/TestReadInteraction.cpp index f835c50f359736..60980d2cf823a9 100644 --- a/src/app/tests/TestReadInteraction.cpp +++ b/src/app/tests/TestReadInteraction.cpp @@ -2548,8 +2548,9 @@ void TestReadInteraction::TestPostSubscribeRoundtripStatusReportTimeout(nlTestSu { break; } - ctx.GetIOContext().DriveIO(); } + ctx.GetIOContext().DriveIO(); + delegate.mGotReport = false; delegate.mNumAttributeResponse = 0; ctx.ExpireSessionBobToAlice(); @@ -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); @@ -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;