Merge pull request #3008 from halseth/lntest-dont-return-nil-error

[trivial] lntest: don't return from ensureConnected on non-error
This commit is contained in:
Olaoluwa Osuntokun 2019-04-24 17:07:06 -07:00 committed by GitHub
commit b63584980a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -460,11 +460,11 @@ func (n *NetworkHarness) EnsureConnected(ctx context.Context, a, b *HarnessNode)
// can exit early.
return nil
case aErr != errConnectionRequested:
case aErr != nil && aErr != errConnectionRequested:
// Return any critical errors returned by either alice.
return aErr
case bErr != errConnectionRequested:
case bErr != nil && bErr != errConnectionRequested:
// Return any critical errors returned by either bob.
return bErr