diff --git a/go.mod b/go.mod index d7e9acd..2692692 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( github.com/aws/aws-sdk-go v1.30.20 - github.com/breez/lntest v0.0.12 + github.com/breez/lntest v0.0.13 github.com/btcsuite/btcd v0.23.3 github.com/btcsuite/btcd/btcec/v2 v2.2.1 github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 diff --git a/itest/bob_offline_test.go b/itest/bob_offline_test.go index 2ad63ae..c325f71 100644 --- a/itest/bob_offline_test.go +++ b/itest/bob_offline_test.go @@ -48,6 +48,7 @@ func testFailureBobOffline(p *testParams) { }) // Kill the mobile client + log.Printf("Stopping breez client") p.BreezClient().Stop() // TODO: Fix race waiting for htlc interceptor. @@ -58,4 +59,12 @@ func testFailureBobOffline(p *testParams) { route := constructRoute(p.lsp.LightningNode(), p.BreezClient().Node(), channelId, lntest.NewShortChanIDFromString("1x0x0"), outerAmountMsat) _, err := alice.PayViaRoute(outerAmountMsat, outerInvoice.paymentHash, outerInvoice.paymentSecret, route) assert.Contains(p.t, err.Error(), "WIRE_TEMPORARY_CHANNEL_FAILURE") + + log.Printf("Starting breez client again") + p.BreezClient().Start() + p.BreezClient().Node().ConnectPeer(p.lsp.LightningNode()) + + log.Printf("Alice paying again") + _, err = alice.PayViaRoute(outerAmountMsat, outerInvoice.paymentHash, outerInvoice.paymentSecret, route) + assert.Nil(p.t, err) }