From 685ff8bbf68fe8db494ee9935c8964145846b1e5 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Wed, 7 Jul 2021 22:57:29 +0300 Subject: [PATCH] network: reduce dial timeout in discoverer test We don't care much about dialing, but the same constant is used in outer discoverer loop in case no connections are established and we have no connections established. --- pkg/network/discovery_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/network/discovery_test.go b/pkg/network/discovery_test.go index 83464a26f..f8690764e 100644 --- a/pkg/network/discovery_test.go +++ b/pkg/network/discovery_test.go @@ -56,7 +56,7 @@ func (ft *fakeTransp) Close() { func TestDefaultDiscoverer(t *testing.T) { ts := &fakeTransp{} ts.dialCh = make(chan string) - d := NewDefaultDiscovery(nil, time.Second/2, ts) + d := NewDefaultDiscovery(nil, time.Second/16, ts) var set1 = []string{"1.1.1.1:10333", "2.2.2.2:10333"} sort.Strings(set1)