apiserver: fix lint issue, defaulting and validation test for flowcontrol v1

Kubernetes-commit: 430c226709b4dfd1284f6463c7a37603154ad39c
This commit is contained in:
Abu Kashem 2023-10-11 14:03:42 -04:00 committed by Kubernetes Publisher
parent 0b0a995736
commit 2a3f44cd21
1 changed files with 3 additions and 1 deletions

View File

@ -129,7 +129,9 @@ func Test_GetMaxSeats(t *testing.T) {
},
},
}
c.digestConfigObjects([]*flowcontrolv1.PriorityLevelConfiguration{testPriorityLevel}, nil)
if _, err := c.digestConfigObjects([]*flowcontrolv1.PriorityLevelConfiguration{testPriorityLevel}, nil); err != nil {
t.Errorf("unexpected error from digestConfigObjects: %v", err)
}
maxSeats := c.GetMaxSeats("test-pl")
if maxSeats != testcase.expectedMaxSeats {
t.Errorf("unexpected max seats, got=%d, want=%d", maxSeats, testcase.expectedMaxSeats)