Merge pull request #4918 from halseth/itest-bounds-error

itest: fix node names out of bounds
This commit is contained in:
Olaoluwa Osuntokun 2021-01-14 17:38:08 -08:00 committed by GitHub
commit 90a05ae41c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6726,7 +6726,10 @@ func testInvoiceRoutingHints(net *lntest.NetworkHarness, t *harnessTest) {
)
// Make sure all the channels have been opened.
nodeNames := []string{"bob", "carol", "dave", "eve"}
chanNames := []string{
"alice-bob", "alice-carol", "bob-carol", "alice-dave",
"alice-eve",
}
aliceChans := []*lnrpc.ChannelPoint{
chanPointBob, chanPointCarol, chanPointBobCarol, chanPointDave,
chanPointEve,
@ -6735,8 +6738,8 @@ func testInvoiceRoutingHints(net *lntest.NetworkHarness, t *harnessTest) {
ctxt, _ := context.WithTimeout(ctxb, defaultTimeout)
err = net.Alice.WaitForNetworkChannelOpen(ctxt, chanPoint)
if err != nil {
t.Fatalf("timed out waiting for channel open between "+
"alice and %s: %v", nodeNames[i], err)
t.Fatalf("timed out waiting for channel open %s: %v",
chanNames[i], err)
}
}