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 race condition in test #321

Merged
merged 2 commits into from
Feb 28, 2024
Merged

Fix race condition in test #321

merged 2 commits into from
Feb 28, 2024

Conversation

mattiaswal
Copy link
Contributor

There was a race condition in the test ipv4_autoconf, that appeared on slow hardware (GitHub cloud runner, a pc with kvm disabled), that locked-up the test forever.

  • also fix a little bug in infamy/iface.py

did not allow any other protocol to checked except DHCP
Refactor test, remove fragile solution with tcpdump started AFTER
the linklocal was activated, this opened for a race condition since
it was listening for a message sent once.

Now wait for the linklocal address instead.
@mattiaswal mattiaswal requested a review from troglobit February 28, 2024 15:59
Copy link
Contributor

@troglobit troglobit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, nice collab today 👍

@troglobit troglobit merged commit 2bf6ec7 into main Feb 28, 2024
2 checks passed
@troglobit troglobit deleted the fix-ipv4-autoconf-test branch February 28, 2024 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants