Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[routing-manager] enhance
TestPrefixStaleTime()
(openthread#10342)
This commit changes unit test `TestPrefixStaleTime()` so that a route prefix is advertised with a lifetime of 800 seconds, which is longer than the `kStaleTime` of 600 seconds. With this change, the entry will not expire and become stale at the same time. This simultaneous expiration could cause issues depending on the order of execution of `mStaleTimer` and `mExpirationTimer`, which would be scheduled for the same time. With this change, the entry will still be valid (due to the lifetime of 800 seconds) when the stale timer fires after 600 seconds. This ensures that the test runs consistently and does not depend on the order in which timer callbacks fire.
- Loading branch information