diff --git a/templates/templates_test.go b/templates/templates_test.go index 102de2bd9ff9..3a007e7b9aec 100644 --- a/templates/templates_test.go +++ b/templates/templates_test.go @@ -65,6 +65,8 @@ func TestParseTruncateFunction(t *testing.T) { } for _, testCase := range testCases { + testCase := testCase + tm, err := Parse(testCase.template) assert.NilError(t, err)