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

Update NodeLatencyMonitor unit tests #6712

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

antoninbas
Copy link
Contributor

  • Add missing crdInformerFactory.Start call for TestNodeAddUpdateDelete to avoid cache sync error logs.
  • Add extra logging for TestUpdateMonitorPingInterval, which has been failing infrequently in CI. I cannot figure out the reason for the failures, nor have I been able to reproduce it locally, so adding some logs may help.

* Add missing crdInformerFactory.Start call for TestNodeAddUpdateDelete
  to avoid cache sync error logs.
* Add extra logging for TestUpdateMonitorPingInterval, which has been
  failing infrequently in CI. I cannot figure out the reason for the
  failures, nor have I been able to reproduce it locally, so adding some
  logs may help.

Signed-off-by: Antonin Bas <[email protected]>
@@ -452,6 +452,7 @@ func (m *NodeLatencyMonitor) monitorLoop(stopCh <-chan struct{}) {
case <-stopCh:
return
case latencyConfig := <-m.latencyConfigChanged:
klog.InfoS("NodeLatencyMonitor configuration has changed", "enabled", latencyConfig.Enable, "interval", latencyConfig.Interval)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is a good log to have, regardless of the other changes in this PR

@antoninbas antoninbas added the area/test Issues or PRs related to unit and integration tests. label Oct 2, 2024
@antoninbas antoninbas requested a review from tnqn October 2, 2024 20:55
@antoninbas
Copy link
Contributor Author

/skip-all

@antoninbas antoninbas merged commit fc2ac7e into antrea-io:main Oct 8, 2024
54 of 58 checks passed
@antoninbas antoninbas deleted the fix-nlm-unit-test branch October 8, 2024 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/test Issues or PRs related to unit and integration tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants