mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix test
This commit is contained in:
parent
2c0fdf3693
commit
ce1e8e58ae
|
@ -14,7 +14,7 @@ func TestClusterAddRemoveNodes(t *testing.T) {
|
||||||
assert.Equal(t, []pb.ServerAddress{
|
assert.Equal(t, []pb.ServerAddress{
|
||||||
pb.ServerAddress("111:1"),
|
pb.ServerAddress("111:1"),
|
||||||
pb.ServerAddress("111:2"),
|
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:3"), "23.45")
|
||||||
c.AddClusterNode("", "filer", pb.ServerAddress("111:4"), "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:1"),
|
||||||
pb.ServerAddress("111:2"),
|
pb.ServerAddress("111:2"),
|
||||||
pb.ServerAddress("111:3"),
|
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:5"), "23.45")
|
||||||
c.AddClusterNode("", "filer", pb.ServerAddress("111:6"), "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:1"),
|
||||||
pb.ServerAddress("111:2"),
|
pb.ServerAddress("111:2"),
|
||||||
pb.ServerAddress("111:3"),
|
pb.ServerAddress("111:3"),
|
||||||
}, c.filerLeaders.GetLeaders())
|
}, c.getFilers("", false).leaders.GetLeaders())
|
||||||
|
|
||||||
// remove oldest
|
// remove oldest
|
||||||
c.RemoveClusterNode("", "filer", pb.ServerAddress("111:1"))
|
c.RemoveClusterNode("", "filer", pb.ServerAddress("111:1"))
|
||||||
|
@ -39,7 +39,7 @@ func TestClusterAddRemoveNodes(t *testing.T) {
|
||||||
pb.ServerAddress("111:6"),
|
pb.ServerAddress("111:6"),
|
||||||
pb.ServerAddress("111:2"),
|
pb.ServerAddress("111:2"),
|
||||||
pb.ServerAddress("111:3"),
|
pb.ServerAddress("111:3"),
|
||||||
}, c.filerLeaders.GetLeaders())
|
}, c.getFilers("", false).leaders.GetLeaders())
|
||||||
|
|
||||||
// remove oldest
|
// remove oldest
|
||||||
c.RemoveClusterNode("", "filer", pb.ServerAddress("111:1"))
|
c.RemoveClusterNode("", "filer", pb.ServerAddress("111:1"))
|
||||||
|
|
Loading…
Reference in a new issue