fix staticcheck failures of test/integration/client test/integration/disruption

This commit is contained in:
SataQiu
2020-01-03 17:23:35 +08:00
parent 09cb73a554
commit 17b0b77026
3 changed files with 6 additions and 5 deletions

View File

@@ -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)