etcdserver: GetClusterFromPeers -> GetClusterFromRemotePeers

This commit is contained in:
Xiang Li
2015-02-13 19:05:29 -08:00
parent f7540912d6
commit c5ca1218f3
4 changed files with 8 additions and 10 deletions

View File

@ -1135,7 +1135,7 @@ func TestGetOtherPeerURLs(t *testing.T) {
}
for i, tt := range tests {
cl := NewClusterFromMembers("", types.ID(0), tt.membs)
urls := getOtherPeerURLs(cl, tt.self)
urls := getRemotePeerURLs(cl, tt.self)
if !reflect.DeepEqual(urls, tt.wurls) {
t.Errorf("#%d: urls = %+v, want %+v", i, urls, tt.wurls)
}