Skip to content

Commit e92a74e

Browse files
committed
Add manual timeout to keygen
1 parent eb2a537 commit e92a74e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tss/ecdsa/keygen/keygen_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ func (s *KeygenTestSuite) Test_ValidKeygenProcess() {
4848
s.MockECDSAStorer.EXPECT().LockKeyshare().Times(3)
4949
s.MockECDSAStorer.EXPECT().UnlockKeyshare().Times(3)
5050
s.MockECDSAStorer.EXPECT().StoreKeyshare(gomock.Any()).Times(3)
51-
pool := pool.New().WithContext(context.Background()).WithCancelOnError()
51+
52+
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
53+
defer cancel()
54+
55+
pool := pool.New().WithContext(ctx)
5256
for i, coordinator := range coordinators {
5357
pool.Go(func(ctx context.Context) error {
5458
return coordinator.Execute(ctx, []tss.TssProcess{processes[i]}, nil, peer.ID(""))

0 commit comments

Comments
 (0)