diff --git a/pkg/controller/nodeipam/ipam/range_allocator_test.go b/pkg/controller/nodeipam/ipam/range_allocator_test.go index bc8ebcdaf2a..c349c2e9744 100644 --- a/pkg/controller/nodeipam/ipam/range_allocator_test.go +++ b/pkg/controller/nodeipam/ipam/range_allocator_test.go @@ -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))