mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 17:55:36 +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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue