Skip to content

Commit

Permalink
dkg: increase test timeout for TestSigsExchange (#3061)
Browse files Browse the repository at this point in the history
`TestSigsExchange` is a network-intensive test, that exchanges `n^n` messages at a given time.

While it runs fine on development machines, even our more powerful self-hosted runners need more time for it to finish properly.

Increase the timeout from 15 seconds to 45 seconds as well as reduce the amount of nodes from 10 to 7, in hope to reduce the chances of false positives failures in our CI.

category: fixbuild
ticket: none
  • Loading branch information
gsora committed Apr 30, 2024
1 parent faa9592 commit c36bbde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dkg/nodesigs_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ import (
)

func TestSigsExchange(t *testing.T) {
n := 10
n := 7

var (
ctx, cancel = context.WithTimeout(context.Background(), 15*time.Second)
ctx, cancel = context.WithTimeout(context.Background(), 45*time.Second)

secrets []*k1.PrivateKey
tcpNodes []host.Host
Expand Down

0 comments on commit c36bbde

Please sign in to comment.