lntest+itest: flatten testMultiHopRemoteForceCloseOnChainHtlcTimeout

This commit is contained in:
yyforyongyu committed 2024-12-20 17:54:10 +08:00
1 parent bef17f16cf
commit d7b2025248
4 files changed
+323 -217

No files matched your search

+4 -2
View File
@@ -29,6 +29,7 @@ import (
"github.com/lightningnetwork/lnd/lntest/rpc"
"github.com/lightningnetwork/lnd/lntest/wait"
"github.com/lightningnetwork/lnd/lntypes"
"github.com/lightningnetwork/lnd/lnutils"
"github.com/stretchr/testify/require"
"google.golang.org/protobuf/proto"
)
@@ -1613,8 +1614,9 @@ func (h *HarnessTest) AssertNumHTLCsAndStage(hn *node.HarnessNode,
}
if len(target.PendingHtlcs) != num {
return fmt.Errorf("got %d pending htlcs, want %d",
len(target.PendingHtlcs), num)
return fmt.Errorf("got %d pending htlcs, want %d, %s",
len(target.PendingHtlcs), num,
lnutils.SpewLogClosure(target.PendingHtlcs)())
}
for i, htlc := range target.PendingHtlcs {