mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-04 18:33:34 +02:00
routing: fix race in TestNewRouteRequest
The `err` variable was being shared by the parallel threads.
This commit is contained in:
@@ -2234,6 +2234,7 @@ func TestNewRouteRequest(t *testing.T) {
|
|||||||
var (
|
var (
|
||||||
blindedPathInfo *BlindedPaymentPathSet
|
blindedPathInfo *BlindedPaymentPathSet
|
||||||
expectedTarget = testCase.expectedTarget
|
expectedTarget = testCase.expectedTarget
|
||||||
|
err error
|
||||||
)
|
)
|
||||||
if testCase.blindedPayment != nil {
|
if testCase.blindedPayment != nil {
|
||||||
blindedPathInfo, err = NewBlindedPaymentPathSet(
|
blindedPathInfo, err = NewBlindedPaymentPathSet(
|
||||||
|
Reference in New Issue
Block a user