routing: fix race in TestNewRouteRequest

The `err` variable was being shared by the parallel threads.
This commit is contained in:
Elle Mouton committed 2024-08-05 16:07:03 +02:00
1 parent 7e1e054511
commit 6ab34665fb
1 file changed
+1
+1
View File
@@ -2234,6 +2234,7 @@ func TestNewRouteRequest(t *testing.T) {
var (
blindedPathInfo *BlindedPaymentPathSet
expectedTarget = testCase.expectedTarget
err error
)
if testCase.blindedPayment != nil {
blindedPathInfo, err = NewBlindedPaymentPathSet(