mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 10:43:56 +00:00
Merge pull request #120151 from Penguin-zlh/cleanup-e2e-framework-havekey
cleanup: e2e : stop using deprecated framework.ExpectHaveKey
This commit is contained in:
commit
8b132ea40a
@ -177,7 +177,7 @@ var _ = SIGDescribe("DisruptionController", func() {
|
|||||||
}, cs.PolicyV1().PodDisruptionBudgets(ns).UpdateStatus)
|
}, cs.PolicyV1().PodDisruptionBudgets(ns).UpdateStatus)
|
||||||
// fetch again to make sure the update from API was effective
|
// fetch again to make sure the update from API was effective
|
||||||
updated := getPDBStatusOrDie(ctx, dc, ns, defaultName)
|
updated := getPDBStatusOrDie(ctx, dc, ns, defaultName)
|
||||||
framework.ExpectHaveKey(updated.Status.DisruptedPods, pod.Name, "Expecting the DisruptedPods have %s", pod.Name)
|
gomega.Expect(updated.Status.DisruptedPods).To(gomega.HaveKey(pod.Name), "Expecting the DisruptedPods have %s", pod.Name)
|
||||||
|
|
||||||
ginkgo.By("Patching PodDisruptionBudget status")
|
ginkgo.By("Patching PodDisruptionBudget status")
|
||||||
patched := patchPDBOrDie(ctx, cs, dc, ns, defaultName, func(old *policyv1.PodDisruptionBudget) (bytes []byte, err error) {
|
patched := patchPDBOrDie(ctx, cs, dc, ns, defaultName, func(old *policyv1.PodDisruptionBudget) (bytes []byte, err error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user