apiserver: fix lint issue, defaulting and validation test for flowcontrol v1
Kubernetes-commit: 430c226709b4dfd1284f6463c7a37603154ad39c
This commit is contained in:
parent
0b0a995736
commit
2a3f44cd21
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue