[#16] Fix TestHealthyReweight

Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
Denis Kirillov 2021-07-20 11:06:45 +03:00
parent edc1382178
commit 7a0128e6ff

View file

@ -94,6 +94,7 @@ func TestHealthyReweight(t *testing.T) {
p.lock.Unlock()
updateNodesHealth(context.TODO(), p, options, buffer)
p.sampler = NewSampler(weights, rand.NewSource(0))
connection0, _, err = p.Connection()
require.NoError(t, err)