lntest+itest: flatten testMultiHopRemoteForceCloseOnChainHtlcTimeout
This commit is contained in:
4 files changed
+323
-217
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user