Commit 7d444263 authored by ravisantoshgudimetla's avatar ravisantoshgudimetla

Change from Micro to Milli for introducing delay

parent 7e37b895
......@@ -1258,6 +1258,8 @@ func TestMonitorNodeStatusEvictPodsWithDisruption(t *testing.T) {
}
zones := testutil.GetZones(fakeNodeHandler)
for _, zone := range zones {
// Time for rate-limiter reloading per node.
time.Sleep(50 * time.Millisecond)
nodeController.zonePodEvictor[zone].Try(func(value TimedValue) (bool, time.Duration) {
uid, _ := value.UID.(string)
deletePods(fakeNodeHandler, nodeController.recorder, value.Value, uid, nodeController.daemonSetStore)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment