Fix intermittent pinger test failures
The "the pinger is stopped" test case fails intermittently. We just want
to make sure the pinger has started so we can verify that it stopped so
we just need to ensure one ping occurred and not measure a difference.
Fixes
@@ -149,7 +149,9 @@ var _ = Describe("Pinger", func() {
})
It("should no longer update the statistics", func() {
- verifyPingStats(3)
+ Eventually(func() string {
+ return pinger.GetLatencyInfo().Spec.Last
+ }, 3).ShouldNot(BeEmpty())
pinger.Stop()
