fix flaky TestPickfirstOneAddressRemoval (#1731)

This commit is contained in:
lyuxuan
2017-12-14 15:42:58 -08:00
committed by GitHub
parent 2625f0335f
commit 5ff10c3b65

View File

@ -173,10 +173,10 @@ func (bw *balancerWrapper) lbWatcher() {
sc.Connect()
}
} else {
oldSC.UpdateAddresses(newAddrs)
bw.mu.Lock()
bw.connSt[oldSC].addr = addrs[0]
bw.mu.Unlock()
oldSC.UpdateAddresses(newAddrs)
}
} else {
var (