mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #4266 from gyuho/minor_govet
integration: minor govet shadow fix
This commit is contained in:
commit
c21d87354e
@ -45,8 +45,8 @@ func testBarrier(t *testing.T, waiters int, chooseConn func() *grpc.ClientConn)
|
|||||||
donec := make(chan struct{})
|
donec := make(chan struct{})
|
||||||
for i := 0; i < waiters; i++ {
|
for i := 0; i < waiters; i++ {
|
||||||
go func() {
|
go func() {
|
||||||
b := recipe.NewBarrier(recipe.NewEtcdClient(chooseConn()), "test-barrier")
|
br := recipe.NewBarrier(recipe.NewEtcdClient(chooseConn()), "test-barrier")
|
||||||
if err := b.Wait(); err != nil {
|
if err := br.Wait(); err != nil {
|
||||||
t.Fatalf("could not wait on barrier (%v)", err)
|
t.Fatalf("could not wait on barrier (%v)", err)
|
||||||
}
|
}
|
||||||
donec <- struct{}{}
|
donec <- struct{}{}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user