From 30eb6770e5b0723ad2c1e20b02a7b33f57e6a00e Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Thu, 6 Oct 2022 17:42:06 -0700 Subject: [PATCH] lnwallet/chancloser: fix loop variable shadowing in TestMaxFeeBailOut --- lnwallet/chancloser/chancloser_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lnwallet/chancloser/chancloser_test.go b/lnwallet/chancloser/chancloser_test.go index a51ebfa19..046ccb515 100644 --- a/lnwallet/chancloser/chancloser_test.go +++ b/lnwallet/chancloser/chancloser_test.go @@ -268,6 +268,8 @@ func TestMaxFeeBailOut(t *testing.T) { ) for _, isInitiator := range []bool{true, false} { + isInitiator := isInitiator + t.Run(fmt.Sprintf("initiator=%v", isInitiator), func(t *testing.T) { t.Parallel()