[tests] fix race condition in SRP recovery reboot test#3444
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3444 +/- ##
===========================================
- Coverage 55.77% 33.75% -22.02%
===========================================
Files 87 143 +56
Lines 6890 17246 +10356
Branches 0 1413 +1413
===========================================
+ Hits 3843 5822 +1979
- Misses 3047 11117 +8070
- Partials 0 307 +307 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
06a14c6 to
282e954
Compare
282e954 to
604e95d
Compare
604e95d to
9c0684f
Compare
9c0684f to
4b583e4
Compare
4b583e4 to
710db6b
Compare
710db6b to
ab14ccb
Compare
ab14ccb to
425fabc
Compare
Resolve a pre-existing race condition in dind_srp_tc_11.exp: - After the DUT reboots, the SRP server port changes. - The test was checking 'srp client host state' immediately and matching 'Registered' from the pre-reboot state, before the client actually detected the port change and re-registered. - Added a loop to wait for the client's registered server port to match the new server port before checking the host state.
425fabc to
6a2f528
Compare
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request updates the integration test script 'tests/scripts/expect/dind_srp_tc_11.exp' to check if the variable 'port_after' is defined. If it exists, the script parses the port from hexadecimal to decimal, waits for the SRP client server to update to the new port, and verifies the update completes successfully before proceeding with the host state registration check. There are no review comments, so I have no feedback to provide.
Resolve a pre-existing race condition in dind_srp_tc_11.exp: