Skip to content

Commit 74bdc2b

Browse files
authored
Merge pull request kubernetes#90321 from k-toyoda-pi/add_error_check_e2e_disruption
Add checking error for disruption e2e test
2 parents e63fb9a + 47e4f51 commit 74bdc2b

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)