From 47e4f51da2a2a15f46d5ab134fa672adcedb3561 Mon Sep 17 00:00:00 2001 From: toyoda Date: Tue, 21 Apr 2020 09:52:23 +0900 Subject: [PATCH] Add checking error for disruption e2e test --- test/e2e/apps/disruption.go | 1 + 1 file changed, 1 insertion(+) diff --git a/test/e2e/apps/disruption.go b/test/e2e/apps/disruption.go index 357a3694459..2053e5c83b4 100644 --- a/test/e2e/apps/disruption.go +++ b/test/e2e/apps/disruption.go @@ -607,6 +607,7 @@ func waitForPdbToObserveHealthyPods(cs kubernetes.Interface, ns string, healthyC func getPDBStatusOrDie(dc dynamic.Interface, ns string, name string) *policyv1beta1.PodDisruptionBudget { pdbStatusResource := policyv1beta1.SchemeGroupVersion.WithResource("poddisruptionbudgets") unstruct, err := dc.Resource(pdbStatusResource).Namespace(ns).Get(context.TODO(), name, metav1.GetOptions{}, "status") + framework.ExpectNoError(err) pdb, err := unstructuredToPDB(unstruct) framework.ExpectNoError(err, "Getting the status of the pdb %s in namespace %s", name, ns) return pdb