test: assert raw output signing requests

This commit is contained in:
Joost Jager 2020-01-15 09:55:22 +01:00
parent cecb26c495
commit a05e46697d
No known key found for this signature in database
GPG key ID: A61B9D4C393C59C7
5 changed files with 28 additions and 0 deletions

View file

@ -265,6 +265,9 @@ func testSuccess(ctx *testContext, amt btcutil.Amount, hash lntypes.Hash,
// Publish tick.
ctx.expiryChan <- testTime
// Expect a signing request.
<-ctx.Lnd.SignOutputRawChannel
if !preimageRevealed {
ctx.assertStatus(loopdb.StatePreimageRevealed)
ctx.assertStorePreimageReveal()