Skip to content

Commit 6ab3466

Browse files
committed
routing: fix race in TestNewRouteRequest
The `err` variable was being shared by the parallel threads.
1 parent 7e1e054 commit 6ab3466

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

routing/router_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2234,6 +2234,7 @@ func TestNewRouteRequest(t *testing.T) {
22342234
var (
22352235
blindedPathInfo *BlindedPaymentPathSet
22362236
expectedTarget = testCase.expectedTarget
2237+
err error
22372238
)
22382239
if testCase.blindedPayment != nil {
22392240
blindedPathInfo, err = NewBlindedPaymentPathSet(

0 commit comments

Comments
 (0)