From 6ab34665fbb1f3a1b4cc894e0c27a3d20c9e2db3 Mon Sep 17 00:00:00 2001 From: Elle Mouton Date: Mon, 5 Aug 2024 15:08:31 +0200 Subject: [PATCH] routing: fix race in TestNewRouteRequest The `err` variable was being shared by the parallel threads. --- routing/router_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/routing/router_test.go b/routing/router_test.go index 28cced4e6..43351d6d2 100644 --- a/routing/router_test.go +++ b/routing/router_test.go @@ -2234,6 +2234,7 @@ func TestNewRouteRequest(t *testing.T) { var ( blindedPathInfo *BlindedPaymentPathSet expectedTarget = testCase.expectedTarget + err error ) if testCase.blindedPayment != nil { blindedPathInfo, err = NewBlindedPaymentPathSet(