mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-09 21:21:14 +00:00
fix staticcheck failures of test/integration/client test/integration/disruption
This commit is contained in:
@@ -163,6 +163,9 @@ func TestPDBWithScaleSubresource(t *testing.T) {
|
||||
waitPDBStable(t, clientSet, 4, nsName, pdb.Name)
|
||||
|
||||
newPdb, err := clientSet.PolicyV1beta1().PodDisruptionBudgets(nsName).Get(pdb.Name, metav1.GetOptions{})
|
||||
if err != nil {
|
||||
t.Errorf("Error getting PodDisruptionBudget: %v", err)
|
||||
}
|
||||
|
||||
if expected, found := int32(replicas), newPdb.Status.ExpectedPods; expected != found {
|
||||
t.Errorf("Expected %d, but found %d", expected, found)
|
||||
|
Reference in New Issue
Block a user