Fix test failure in sync_test.go.

This commit is contained in:
Jing Ai 2017-11-21 09:59:48 -08:00
parent 996ddde3fa
commit 302c59f50f

View File

@ -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",