From 44ae2d7e639d00701321aa3df44b32f079bb40c8 Mon Sep 17 00:00:00 2001 From: Andrei Smirnov Date: Mon, 26 Feb 2024 14:02:47 +0300 Subject: [PATCH] dkg: fixing timings in test (#2902) Fixed timings in dkg_test to address build failure. category: fixbuild ticket: none --- dkg/dkg_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dkg/dkg_test.go b/dkg/dkg_test.go index 0e4770072..541abca35 100644 --- a/dkg/dkg_test.go +++ b/dkg/dkg_test.go @@ -126,6 +126,7 @@ func testDKG(t *testing.T, def cluster.Definition, dir string, p2pKeys []*k1.Pri }, SyncOpts: []func(*dkgsync.Client){dkgsync.WithPeriod(time.Millisecond * 50)}, }, + ShutdownDelay: 5 * time.Second, } allReceivedKeystores := make(chan struct{}) // Receives struct{} for each `numNodes` keystore intercepted by the keymanager server @@ -256,7 +257,7 @@ func startRelay(parentCtx context.Context, t *testing.T) string { endpoint := "http://" + addr // Wait up to 5s for bootnode to become available. - ctx, cancel := context.WithTimeout(parentCtx, 5*time.Second) + ctx, cancel := context.WithTimeout(parentCtx, 10*time.Second) defer cancel() isUp := make(chan struct{})