Skip to content

Commit 47e4f51

Browse files
committed
Add checking error for disruption e2e test
1 parent d6f44b0 commit 47e4f51

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/e2e/apps/disruption.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,7 @@ func waitForPdbToObserveHealthyPods(cs kubernetes.Interface, ns string, healthyC
607607
func getPDBStatusOrDie(dc dynamic.Interface, ns string, name string) *policyv1beta1.PodDisruptionBudget {
608608
pdbStatusResource := policyv1beta1.SchemeGroupVersion.WithResource("poddisruptionbudgets")
609609
unstruct, err := dc.Resource(pdbStatusResource).Namespace(ns).Get(context.TODO(), name, metav1.GetOptions{}, "status")
610+
framework.ExpectNoError(err)
610611
pdb, err := unstructuredToPDB(unstruct)
611612
framework.ExpectNoError(err, "Getting the status of the pdb %s in namespace %s", name, ns)
612613
return pdb

0 commit comments

Comments
 (0)