Skip to content

Commit

Permalink
dkg: fixing timings in test (#2902)
Browse files Browse the repository at this point in the history
Fixed timings in dkg_test to address build failure.

category: fixbuild
ticket: none
  • Loading branch information
pinebit committed Feb 26, 2024
1 parent f217237 commit 44ae2d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dkg/dkg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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{})
Expand Down

0 comments on commit 44ae2d7

Please sign in to comment.