aboutsummaryrefslogtreecommitdiff
path: root/weed/cluster/cluster_test.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-11-08 00:13:40 -0800
committerChris Lu <chris.lu@gmail.com>2021-11-08 17:47:56 -0800
commit5c99b8acc3b55647eca895124d293b1c8cd0d125 (patch)
treeb2312496cff144c242ff6252828bcbbce975b162 /weed/cluster/cluster_test.go
parent00fdab12845acd8960686eb5a638ce349352e4d1 (diff)
downloadseaweedfs-5c99b8acc3b55647eca895124d293b1c8cd0d125.tar.xz
seaweedfs-5c99b8acc3b55647eca895124d293b1c8cd0d125.zip
rename variables
Diffstat (limited to 'weed/cluster/cluster_test.go')
-rw-r--r--weed/cluster/cluster_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/weed/cluster/cluster_test.go b/weed/cluster/cluster_test.go
index dd68d59b9..b56ee501c 100644
--- a/weed/cluster/cluster_test.go
+++ b/weed/cluster/cluster_test.go
@@ -14,7 +14,7 @@ func TestClusterAddRemoveNodes(t *testing.T) {
assert.Equal(t, []pb.ServerAddress{
pb.ServerAddress("111:1"),
pb.ServerAddress("111:2"),
- }, c.leaders.GetLeaders())
+ }, c.filerLeaders.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.leaders.GetLeaders())
+ }, c.filerLeaders.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.leaders.GetLeaders())
+ }, c.filerLeaders.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.leaders.GetLeaders())
+ }, c.filerLeaders.GetLeaders())
// remove oldest
c.RemoveClusterNode("filer", pb.ServerAddress("111:1"))