Skip to content

Commit

Permalink
fix test script
Browse files Browse the repository at this point in the history
  • Loading branch information
mkardous-silabs committed Oct 3, 2023
1 parent 1677310 commit bcb60db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/messaging/tests/TestReliableMessageProtocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1630,6 +1630,9 @@ void CheckIsPeerActiveNotInitiator(nlTestSuite * inSuite, void * inContext)
100_ms32, // CHIP_CONFIG_MRP_LOCAL_ACTIVE_RETRY_INTERVAL
});

mockReceiver.mRetainExchange = false;
mockSender.mRetainExchange = false;

// Now send a message from the other side.
buffer = chip::MessagePacketBuffer::NewWithData(PAYLOAD, sizeof(PAYLOAD));
NL_TEST_ASSERT(inSuite, !buffer.IsNull());
Expand All @@ -1652,7 +1655,7 @@ void CheckIsPeerActiveNotInitiator(nlTestSuite * inSuite, void * inContext)
ctx.DrainAndServiceIO();

NL_TEST_ASSERT(inSuite, mockSender.IsOnMessageReceivedCalled);
NL_TEST_ASSERT(inSuite, loopback.mSentMessageCount == 4);
NL_TEST_ASSERT(inSuite, loopback.mSentMessageCount == 5);
}

void CheckLostStandaloneAck(nlTestSuite * inSuite, void * inContext)
Expand Down

0 comments on commit bcb60db

Please sign in to comment.