From 7a0128e6ffd7a53ad45a82692b961d5a71c3d407 Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Tue, 20 Jul 2021 11:06:45 +0300 Subject: [PATCH] [#16] Fix TestHealthyReweight Signed-off-by: Denis Kirillov --- pkg/pool/sampler_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/pool/sampler_test.go b/pkg/pool/sampler_test.go index 20eb5eb..2738e46 100644 --- a/pkg/pool/sampler_test.go +++ b/pkg/pool/sampler_test.go @@ -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)