test: add comprehensive integration tests for on-chain HTLC handling

In this commit, we add 6 new integration tests to test the various
actions that may need to be performed when either side goes on-chain to
fully resolve HTLC’s. Many of the tests are mirrors of each other as
they test sweeping/resolving HTLC’s from both commitment transactions.
This commit is contained in:
Olaoluwa Osuntokun committed 2018-01-22 19:20:02 -08:00
1 parent a1e2560b12
commit f8adab1f1c
5 files changed
+1399 -15

No files matched your search

+2 -1
View File
@@ -238,7 +238,8 @@ func TestPeerChannelClosureFeeNegotiationsResponder(t *testing.T) {
broadcastTxChan := make(chan *wire.MsgTx)
responder, responderChan, initiatorChan, cleanUp, err := createTestPeer(
notifier, broadcastTxChan)
notifier, broadcastTxChan,
)
if err != nil {
t.Fatalf("unable to create test channels: %v", err)
}