Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix intermittent failure in TestReliableMessageProtocol. #9927

Merged

Conversation

bzbarsky-apple
Copy link
Contributor

We are ending up with queued retransmits on both the initiator and
responder. The responder has a much longer retransmit interval, but
when we sleep for the initiator to retransmit, we can end up sleeping
too long, so the responder retransmits too. Make the test handle both
cases.

Problem

Intermittent failures like https://github.com/project-chip/connectedhomeip/runs/3682099087

Change overview

Make those cases not fail.

Testing

Ran this locally, twiddled the MRP settings to make sure I exercised both branches, and made sure that both branches pass.

We are ending up with queued retransmits on both the initiator and
responder.  The responder has a much longer retransmit interval, but
when we sleep for the initiator to retransmit, we can end up sleeping
too long, so the responder retransmits too.  Make the test handle both
cases.
@bzbarsky-apple
Copy link
Contributor Author

@yufengwangca yufengwangca merged commit 188df3d into project-chip:master Sep 23, 2021
@bzbarsky-apple bzbarsky-apple deleted the fix-intermittent-fail branch September 23, 2021 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants