Skip to content

Commit

Permalink
test: timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcosNicolau committed Oct 23, 2024
1 parent b503f7f commit 75b9718
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/chainio/avs_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,11 @@ func (w *AvsWriter) SendAggregatedResponse(batchIdentifierHash [32]byte, batchMe
}
}

ctx, cancel := context.WithTimeout(context.Background(), time.Second*2)
// don't wait if the i is low so the transaction gets replace on time
if i < 4 {
return nil, fmt.Errorf("err")
}
ctx, cancel := context.WithTimeout(context.Background(), time.Second*60)
defer cancel()
receipt, err := utils.WaitForTransactionReceipt(w.Client, ctx, tx.Hash())

Expand Down

0 comments on commit 75b9718

Please sign in to comment.