mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
tests/common: address var-naming lint warnings
Signed-off-by: Ivan Valdes <ivan@vald.es>
This commit is contained in:
parent
bc3f109572
commit
7300abc552
@ -43,14 +43,14 @@ func TestStatus(t *testing.T) {
|
||||
if len(rs) != tc.config.ClusterSize {
|
||||
t.Fatalf("wrong number of status responses. expected:%d, got:%d ", tc.config.ClusterSize, len(rs))
|
||||
}
|
||||
memberIds := make(map[uint64]struct{})
|
||||
memberIDs := make(map[uint64]struct{})
|
||||
for _, r := range rs {
|
||||
if r == nil {
|
||||
t.Fatalf("status response is nil")
|
||||
}
|
||||
memberIds[r.Header.MemberId] = struct{}{}
|
||||
memberIDs[r.Header.MemberId] = struct{}{}
|
||||
}
|
||||
if len(rs) != len(memberIds) {
|
||||
if len(rs) != len(memberIDs) {
|
||||
t.Fatalf("found duplicated members")
|
||||
}
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user