Skip to content

Commit

Permalink
dkg: fixed TestSyncFlow (#3309)
Browse files Browse the repository at this point in the history
Possibly fixed the flakey test.

category: test
ticket: #3308
  • Loading branch information
pinebit committed Oct 18, 2024
1 parent a93fa70 commit 2dd8e62
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dkg/dkg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"context"
"encoding/hex"
"encoding/json"
"errors"
"fmt"
"math/rand"
"net/http"
Expand Down Expand Up @@ -537,7 +538,9 @@ func TestSyncFlow(t *testing.T) {
var disconnectedCount int
for err := range dkgErrChan {
testutil.SkipIfBindErr(t, err)
require.NoError(t, err)
if !errors.Is(err, context.Canceled) {
require.NoError(t, err)
}
disconnectedCount++
if disconnectedCount == test.nodes {
break
Expand Down

0 comments on commit 2dd8e62

Please sign in to comment.