Skip to content

Commit

Permalink
itest: wait for lnd backend to sync
Browse files Browse the repository at this point in the history
  • Loading branch information
guggero committed Sep 6, 2021
1 parent 347f142 commit dbd2a9e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions itest/account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,12 @@ func testAccountRenewal(t *harnessTest) {
require.NoError(t.t, err)
absoluteExpiry := uint32(bestHeight) + newRelativeExpiry

// Wait for the lnd backend to catch up as well.
ctxt, cancel := context.WithTimeout(ctx, defaultTimeout)
defer cancel()
err = t.lndHarness.Bob.WaitForBlockchainSync(ctxt)
require.NoError(t.t, err)

updateReq := &poolrpc.RenewAccountRequest{
AccountKey: account.TraderKey,
AccountExpiry: &poolrpc.RenewAccountRequest_RelativeExpiry{
Expand Down

0 comments on commit dbd2a9e

Please sign in to comment.