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