|
|
@ -14,7 +14,7 @@ func TestClusterAddRemoveNodes(t *testing.T) { |
|
|
|
assert.Equal(t, []pb.ServerAddress{ |
|
|
|
pb.ServerAddress("111:1"), |
|
|
|
pb.ServerAddress("111:2"), |
|
|
|
}, c.filerLeaders.GetLeaders()) |
|
|
|
}, c.getFilers("", false).leaders.GetLeaders()) |
|
|
|
|
|
|
|
c.AddClusterNode("", "filer", pb.ServerAddress("111:3"), "23.45") |
|
|
|
c.AddClusterNode("", "filer", pb.ServerAddress("111:4"), "23.45") |
|
|
@ -22,7 +22,7 @@ func TestClusterAddRemoveNodes(t *testing.T) { |
|
|
|
pb.ServerAddress("111:1"), |
|
|
|
pb.ServerAddress("111:2"), |
|
|
|
pb.ServerAddress("111:3"), |
|
|
|
}, c.filerLeaders.GetLeaders()) |
|
|
|
}, c.getFilers("", false).leaders.GetLeaders()) |
|
|
|
|
|
|
|
c.AddClusterNode("", "filer", pb.ServerAddress("111:5"), "23.45") |
|
|
|
c.AddClusterNode("", "filer", pb.ServerAddress("111:6"), "23.45") |
|
|
@ -31,7 +31,7 @@ func TestClusterAddRemoveNodes(t *testing.T) { |
|
|
|
pb.ServerAddress("111:1"), |
|
|
|
pb.ServerAddress("111:2"), |
|
|
|
pb.ServerAddress("111:3"), |
|
|
|
}, c.filerLeaders.GetLeaders()) |
|
|
|
}, c.getFilers("", false).leaders.GetLeaders()) |
|
|
|
|
|
|
|
// remove oldest
|
|
|
|
c.RemoveClusterNode("", "filer", pb.ServerAddress("111:1")) |
|
|
@ -39,7 +39,7 @@ func TestClusterAddRemoveNodes(t *testing.T) { |
|
|
|
pb.ServerAddress("111:6"), |
|
|
|
pb.ServerAddress("111:2"), |
|
|
|
pb.ServerAddress("111:3"), |
|
|
|
}, c.filerLeaders.GetLeaders()) |
|
|
|
}, c.getFilers("", false).leaders.GetLeaders()) |
|
|
|
|
|
|
|
// remove oldest
|
|
|
|
c.RemoveClusterNode("", "filer", pb.ServerAddress("111:1")) |
|
|
|