-
Notifications
You must be signed in to change notification settings - Fork 24
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
Increase constrains in link state testcases #909
base: main
Are you sure you want to change the base?
Conversation
e02a96d
to
4b5ef12
Compare
4b5ef12
to
c1193b5
Compare
c1193b5
to
e93f34c
Compare
e93f34c
to
0ab9458
Compare
0ab9458
to
8aaa4d9
Compare
await client_alpha.wait_for_link_state(beta.public_key, [LinkState.UP]) | ||
await client_beta.wait_for_link_state(alpha.public_key, [LinkState.UP]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These can be executed in parallel as if alpha
will emit link state event sooner, say at t=0 and at t=10 beta
emits, then alpha
will be delayed.
This doesn't pose a problem if we just need the fact that both emitted the event but in this case we should retrieve the timestamps when they received those events and adjust accordingly since there might be a huge difference and interfere with test results
Previously the link state testcase scenarios were structured like setup, do some interaction between peers, sleep for a while and check the reported link states. This approach did not consider the timings of the events. Proposed solution consists in checking the state constantly during the scenario, not only at the end of it. Signed-off-by: Daniel Fetti <[email protected]>
8aaa4d9
to
e2980ee
Compare
Previously the link state testcase scenarios were structured like setup, do some interaction between peers, sleep for a while and check the reported link states. This approach did not consider the timings of the events.
Proposed solution consists in checking the state constantly during the scenario, not only at the end of it.
☑️ Definition of Done checklist