Skip to content

[Lag 2] Allow lacp timing tests to retry limited times until succeeded#403

Merged
lguohan merged 4 commits intosonic-net:masterfrom
yxieca:lag_2
Jan 13, 2018
Merged

[Lag 2] Allow lacp timing tests to retry limited times until succeeded#403
lguohan merged 4 commits intosonic-net:masterfrom
yxieca:lag_2

Conversation

@yxieca
Copy link
Copy Markdown
Collaborator

@yxieca yxieca commented Dec 27, 2017

  • [X ] Test case(new/improvement)

Approach

How did you do it?
lag_2 test has a pretty high failure rate. Most failures are at the lacp frame timing test. This test is testing if DUT would receive LACP frames at the internal consistent with the rate setting, fast: 1 sec, normal: 30 seconds. Test failures are almost always failed to receive 2 packets at the specified interval.

There are too many reasons that could happen. I propose that as long as we receive a pair of frames fits the expected interval within reasonable number of retries (10), the test should pass.

How did you verify/test it?
Repeated execute the lag_2 test, normally the test would fail with 10 retries. With the change, test executed for 70+ times.

Loading
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.

2 participants