From 11758dc388e60baa85cabbbcd708649c639db013 Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Fri, 9 Apr 2021 15:14:54 +0800 Subject: [PATCH] loopout: fix TestCustomSweepConfTarget --- loopout_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/loopout_test.go b/loopout_test.go index 0e72933..0b697aa 100644 --- a/loopout_test.go +++ b/loopout_test.go @@ -232,6 +232,9 @@ func TestCustomSweepConfTarget(t *testing.T) { testReq.SweepConfTarget = testLoopOutMinOnChainCltvDelta - DefaultSweepConfTargetDelta - 1 + // Set on-chain HTLC CLTV. + testReq.Expiry = ctx.Lnd.Height + testLoopOutMinOnChainCltvDelta + // Set up custom fee estimates such that the lower confirmation target // yields a much higher fee rate. ctx.Lnd.SetFeeEstimate(testReq.SweepConfTarget, 250)