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
node-neigh: Wait instead of sleeping in unit tests #17035
Conversation
test-runtime |
Job 'Cilium-PR-Runtime-4.9' hit: #17034 (94.18% similarity) |
@@ -1405,7 +1405,7 @@ func (s *linuxPrivilegedIPv4OnlyTestSuite) TestArpPingHandling(c *check.C) { | |||
c.Assert(found, check.Equals, false) | |||
|
|||
c.Assert(linuxNodeHandler.NodeAdd(nodev3), check.IsNil) | |||
time.Sleep(100 * time.Millisecond) // insertNeighbor is invoked async | |||
wait(nodev3.Identity(), nil, false) |
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.
Either you need to pass the now
value or make the function wait
to accept before = nil
.
I'm wondering why all of sudden we started to hit the TestArp flakes again. Another issue: #17020. |
/mlh new-flake Cilium-PR-Runtime-4.9 👍 created #17038 |
15b8060
to
c5d404a
Compare
linuxNodeHandler.NodeCleanNeighbors() | ||
wait(nodev3.Identity(), &now, true) |
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.
now
is not needed for the deletion.
c5d404a
to
914c6a9
Compare
test-runtime |
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.
🚀 🌔
Job 'Cilium-PR-Runtime-4.9' hit: #17034 (94.02% similarity) |
914c6a9
to
2c9553b
Compare
test-runtime |
Job 'Cilium-PR-Runtime-4.9' hit: #17034 (94.23% similarity) |
We can inspect the neighLastPingByNextHop map to check when insertNeighbor() or deleteNeighbor() was called. Fixes: e68848b ("remove ARP entries left from previous Cilium run") Signed-off-by: André Martins <andre@cilium.io>
2c9553b
to
f81fa2a
Compare
We can inspect the neighLastPingByNextHop map to check
when insertNeighbor() or deleteNeighbor() was called.
Fixes: e68848b ("remove ARP entries left from previous Cilium run")
Signed-off-by: André Martins andre@cilium.io
Fixes #17034