test: extend timeouts within testRevokedCloseRetribution tests

This commit is contained in:
Olaoluwa Osuntokun 2017-12-21 11:44:40 +01:00
parent b56dcc988b
commit a93be76d16
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21
1 changed files with 2 additions and 1 deletions

View File

@ -2953,7 +2953,7 @@ func testRevokedCloseRetributionZeroValueRemoteOutput(net *lntest.NetworkHarness
// Query the mempool for Alice's justice transaction, this should be
// broadcast as Carol's contract breaching transaction gets confirmed
// above.
justiceTXID, err := waitForTxInMempool(net.Miner.Node, 5*time.Second)
justiceTXID, err := waitForTxInMempool(net.Miner.Node, 15*time.Second)
if err != nil {
t.Fatalf("unable to find Alice's justice tx in mempool: %v",
err)
@ -3171,6 +3171,7 @@ func testRevokedCloseRetributionRemoteHodl(net *lntest.NetworkHarness,
// Ensure that carol's balance still shows the amount we originally
// pushed to her, and that at least one more update has occurred.
time.Sleep(500 * time.Millisecond)
checkCarolBalance(pushAmt)
checkCarolNumUpdatesAtleast(carolStateNumPreCopy + 1)