Fix test failure in sync_test.go.
This commit is contained in:
@@ -148,8 +148,7 @@ func TestNodeSyncUpdate(t *testing.T) {
|
||||
desc: "update alias from node",
|
||||
mode: SyncFromCloud,
|
||||
node: nodeWithCIDRRange,
|
||||
events: []fakeEvent{{"node1", "CloudCIDRAllocatorInvalidMode"}},
|
||||
wantError: true,
|
||||
events: nil,
|
||||
},
|
||||
{
|
||||
desc: "update alias from node",
|
||||
@@ -169,8 +168,7 @@ func TestNodeSyncUpdate(t *testing.T) {
|
||||
mode: SyncFromCluster,
|
||||
node: nodeWithoutCIDRRange,
|
||||
fake: fakeAPIs{aliasRange: test.MustParseCIDR("10.1.2.3/16")},
|
||||
events: []fakeEvent{{"node1", "CloudCIDRAllocatorInvalidMode"}},
|
||||
wantError: true,
|
||||
events: nil,
|
||||
},
|
||||
{
|
||||
desc: "allocate range",
|
||||
|
||||
Reference in New Issue
Block a user