From ce1e8e58ae53d093b3fb97df9533b81dac236ba5 Mon Sep 17 00:00:00 2001 From: chrislu Date: Sun, 1 May 2022 23:15:58 -0700 Subject: [PATCH] fix test --- weed/cluster/cluster_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/weed/cluster/cluster_test.go b/weed/cluster/cluster_test.go index d7c82a24d..ccaccf6f7 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.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"))