From 18a06b0ed3b495793e5a3c3c4cc603761750dc51 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Mon, 4 Nov 2019 15:11:39 -0800 Subject: [PATCH] lntest: remove unnecessary wait from single-hop sendtoroute We already wait for all channels to open before creating the payment requests. --- lntest/itest/lnd_test.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lntest/itest/lnd_test.go b/lntest/itest/lnd_test.go index f9624179..eb13a36a 100644 --- a/lntest/itest/lnd_test.go +++ b/lntest/itest/lnd_test.go @@ -4488,16 +4488,6 @@ func testSingleHopSendToRoute(net *lntest.NetworkHarness, t *harnessTest) { t.Fatalf("unable to create pay reqs: %v", err) } - // We'll wait for all parties to recognize the new channels within the - // network. - ctxt, _ = context.WithTimeout(ctxb, defaultTimeout) - err = net.Bob.WaitForNetworkChannelOpen(ctxt, chanPointAlice) - if err != nil { - t.Fatalf("alice didn't advertise her channel in time: %v", err) - } - - time.Sleep(time.Millisecond * 50) - // Using Alice as the source, pay to the 5 invoices from Carol created // above. ctxt, _ = context.WithTimeout(ctxb, defaultTimeout)