mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdserver: move newTestMember* to member_test.go
This commit is contained in:
parent
4b2d6fc70b
commit
077e144e8a
@ -613,16 +613,3 @@ func newTestCluster(membs []Member) *Cluster {
|
||||
}
|
||||
return c
|
||||
}
|
||||
|
||||
func newTestMember(id uint64, peerURLs []string, name string, clientURLs []string) Member {
|
||||
return Member{
|
||||
ID: types.ID(id),
|
||||
RaftAttributes: RaftAttributes{PeerURLs: peerURLs},
|
||||
Attributes: Attributes{Name: name, ClientURLs: clientURLs},
|
||||
}
|
||||
}
|
||||
|
||||
func newTestMemberp(id uint64, peerURLs []string, name string, clientURLs []string) *Member {
|
||||
m := newTestMember(id, peerURLs, name, clientURLs)
|
||||
return &m
|
||||
}
|
||||
|
@ -107,3 +107,16 @@ func TestMemberClone(t *testing.T) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func newTestMember(id uint64, peerURLs []string, name string, clientURLs []string) Member {
|
||||
return Member{
|
||||
ID: types.ID(id),
|
||||
RaftAttributes: RaftAttributes{PeerURLs: peerURLs},
|
||||
Attributes: Attributes{Name: name, ClientURLs: clientURLs},
|
||||
}
|
||||
}
|
||||
|
||||
func newTestMemberp(id uint64, peerURLs []string, name string, clientURLs []string) *Member {
|
||||
m := newTestMember(id, peerURLs, name, clientURLs)
|
||||
return &m
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user