Skip to content

Commit a65c877

Browse files
committed
revert WaitForPodsEvicted
Signed-off-by: Omer Aplatony <[email protected]>
1 parent 9f1236d commit a65c877

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

vertical-pod-autoscaler/e2e/v1/actuation.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ var _ = ActuationSuiteE2eDescribe("Actuation", func() {
203203
utils.InstallVPA(f, vpaCRD)
204204

205205
ginkgo.By("Waiting for pods to be evicted")
206-
err = WaitForPodsEvicted(f, podList, utils.PollTimeout)
206+
err = WaitForPodsEvicted(f, podList)
207207
gomega.Expect(err).NotTo(gomega.HaveOccurred())
208208
})
209209

@@ -276,7 +276,7 @@ var _ = ActuationSuiteE2eDescribe("Actuation", func() {
276276
}, restriction.DeferredResizeUpdateTimeout, 10*time.Second).Should(gomega.Succeed())
277277

278278
ginkgo.By("Waiting for pods to be evicted")
279-
err = WaitForPodsEvicted(f, podList, utils.PollTimeout)
279+
err = WaitForPodsEvicted(f, podList)
280280
gomega.Expect(err).NotTo(gomega.HaveOccurred())
281281
})
282282

@@ -838,7 +838,7 @@ func testEvictsReplicatedPods(f *framework.Framework, controller *autoscaling.Cr
838838
utils.InstallVPA(f, vpaCRD)
839839

840840
ginkgo.By("Waiting for pods to be evicted")
841-
err = WaitForPodsEvicted(f, podList, utils.PollTimeout)
841+
err = WaitForPodsEvicted(f, podList)
842842
gomega.Expect(err).NotTo(gomega.HaveOccurred())
843843
}
844844

@@ -898,7 +898,7 @@ func testEvictsSingletonPodWhenConfigured(f *framework.Framework, controller *au
898898
utils.InstallVPA(f, vpaCRD)
899899

900900
ginkgo.By("Waiting for pods to be evicted")
901-
err = WaitForPodsEvicted(f, podList, utils.PollTimeout)
901+
err = WaitForPodsEvicted(f, podList)
902902
gomega.Expect(err).NotTo(gomega.HaveOccurred())
903903
}
904904

vertical-pod-autoscaler/e2e/v1/common.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,10 +301,10 @@ func WaitForPodsRestarted(f *framework.Framework, podList *apiv1.PodList) error
301301
}
302302

303303
// WaitForPodsEvicted waits until some pods from the list are evicted.
304-
func WaitForPodsEvicted(f *framework.Framework, podList *apiv1.PodList, timeout time.Duration) error {
304+
func WaitForPodsEvicted(f *framework.Framework, podList *apiv1.PodList) error {
305305
initialPodSet := MakePodSet(podList)
306306

307-
return wait.PollUntilContextTimeout(context.Background(), utils.PollInterval, timeout, true, func(ctx context.Context) (done bool, err error) {
307+
return wait.PollUntilContextTimeout(context.Background(), utils.PollInterval, utils.PollTimeout, true, func(ctx context.Context) (done bool, err error) {
308308
currentPodList, err := GetHamsterPods(f)
309309
if err != nil {
310310
return false, err

vertical-pod-autoscaler/e2e/v1/updater.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ var _ = UpdaterE2eDescribe("Updater", func() {
6565
podList := setupPodsForUpscalingEviction(f)
6666

6767
ginkgo.By("Waiting for pods to be evicted")
68-
err := WaitForPodsEvicted(f, podList, utils.PollTimeout)
68+
err := WaitForPodsEvicted(f, podList)
6969
gomega.Expect(err).NotTo(gomega.HaveOccurred())
7070
})
7171

@@ -95,7 +95,7 @@ var _ = UpdaterE2eDescribe("Updater", func() {
9595
podList := setupPodsForDownscalingEviction(f, nil)
9696

9797
ginkgo.By("Waiting for pods to be evicted")
98-
err := WaitForPodsEvicted(f, podList, utils.PollTimeout)
98+
err := WaitForPodsEvicted(f, podList)
9999
gomega.Expect(err).NotTo(gomega.HaveOccurred())
100100
})
101101

0 commit comments

Comments
 (0)