From 3e97aa3931946d42dc6f20142123a2ad2431a5ea Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 18 Sep 2017 17:16:43 -0700 Subject: [PATCH] test: within testListPayments also wait for bob to learn of channel --- lnd_test.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lnd_test.go b/lnd_test.go index 2ef18af1..9f1b8934 100644 --- a/lnd_test.go +++ b/lnd_test.go @@ -1145,11 +1145,14 @@ func testListPayments(net *networkHarness, t *harnessTest) { // Wait for Alice to recognize and advertise the new channel generated // above. ctxt, _ = context.WithTimeout(ctxb, timeout) - err = net.Alice.WaitForNetworkChannelOpen(ctxt, chanPoint) - if err != nil { + if err = net.Alice.WaitForNetworkChannelOpen(ctxt, chanPoint); err != nil { t.Fatalf("alice didn't advertise channel before "+ "timeout: %v", err) } + if err = net.Bob.WaitForNetworkChannelOpen(ctxt, chanPoint); err != nil { + t.Fatalf("bob didn't advertise channel before "+ + "timeout: %v", err) + } // With the invoice for Bob added, send a payment towards Alice paying // to the above generated invoice.