lntest: remove unnecessary wait from single-hop sendtoroute

We already wait for all channels to open before creating the payment
requests.
This commit is contained in:
Conner Fromknecht 2019-11-04 15:11:39 -08:00
parent 8cb17d5c1f
commit 18a06b0ed3
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7

View File

@ -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)