Skip to content

Commit 75b9718

Browse files
committed
test: timeout
1 parent b503f7f commit 75b9718

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

core/chainio/avs_writer.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,11 @@ func (w *AvsWriter) SendAggregatedResponse(batchIdentifierHash [32]byte, batchMe
137137
}
138138
}
139139

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

0 commit comments

Comments
 (0)