mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
test: assert raw output signing requests
This commit is contained in:
parent
cecb26c495
commit
a05e46697d
5 changed files with 28 additions and 0 deletions
|
|
@ -192,6 +192,9 @@ func TestCustomSweepConfTarget(t *testing.T) {
|
|||
|
||||
expiryChan <- time.Now()
|
||||
|
||||
// Expect a signing request for the HTLC success transaction.
|
||||
<-ctx.Lnd.SignOutputRawChannel
|
||||
|
||||
cfg.store.(*storeMock).assertLoopOutState(loopdb.StatePreimageRevealed)
|
||||
status := <-statusChan
|
||||
if status.State != loopdb.StatePreimageRevealed {
|
||||
|
|
@ -247,6 +250,9 @@ func TestCustomSweepConfTarget(t *testing.T) {
|
|||
blockEpochChan <- int32(defaultConfTargetHeight)
|
||||
expiryChan <- time.Now()
|
||||
|
||||
// Expect another signing request.
|
||||
<-ctx.Lnd.SignOutputRawChannel
|
||||
|
||||
// We should expect to see another sweep using the higher fee since the
|
||||
// spend hasn't been confirmed yet.
|
||||
sweepTx := assertSweepTx(DefaultSweepConfTarget)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue