Skip to content

Commit 7a3e3bd

Browse files
authored
Merge pull request #368 from yyforyongyu/fix-test
loopout: fix TestCustomSweepConfTarget
2 parents 478f242 + 11758dc commit 7a3e3bd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

loopout_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,9 @@ func TestCustomSweepConfTarget(t *testing.T) {
236236
testReq.SweepConfTarget = testLoopOutMinOnChainCltvDelta -
237237
DefaultSweepConfTargetDelta - 1
238238

239+
// Set on-chain HTLC CLTV.
240+
testReq.Expiry = ctx.Lnd.Height + testLoopOutMinOnChainCltvDelta
241+
239242
// Set up custom fee estimates such that the lower confirmation target
240243
// yields a much higher fee rate.
241244
ctx.Lnd.SetFeeEstimate(testReq.SweepConfTarget, 250)

0 commit comments

Comments
 (0)