mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 02:34:03 +00:00
Fix linting issue in test
Lint error was introduced in https://github.com/kubernetes/kubernetes/pull/128305 and backported in https://github.com/kubernetes/kubernetes/pull/128806 It was merged before I could fix it, so I thought I'd make a follow up PR to fix it. I won't be backporting this lint as it's only in tests (unless it makes sense to backport?)
This commit is contained in:
parent
021dbe9d19
commit
90922f5c94
@ -926,7 +926,9 @@ func TestNodeDeletionReleaseCIDR(t *testing.T) {
|
||||
rangeAllocator.nodesSynced = test.AlwaysReady
|
||||
rangeAllocator.recorder = testutil.NewFakeRecorder()
|
||||
|
||||
rangeAllocator.syncNode(tCtx, tc.nodeKey)
|
||||
if err := rangeAllocator.syncNode(tCtx, tc.nodeKey); err != nil {
|
||||
t.Fatalf("failed to run rangeAllocator.syncNode")
|
||||
}
|
||||
|
||||
if len(rangeAllocator.cidrSets) != 1 {
|
||||
t.Fatalf("Expected a single cidrSet, but got %d", len(rangeAllocator.cidrSets))
|
||||
|
Loading…
Reference in New Issue
Block a user