From 0e1cbc2c41e2c3999e636f5ea147478e899cf6cc Mon Sep 17 00:00:00 2001 From: Julio <1953782+julio-lopez@users.noreply.github.com> Date: Mon, 8 Jan 2024 15:30:34 -0800 Subject: [PATCH] add index to subtest name to disambiguate tests --- internal/adapter/handlebars/handlebars_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/adapter/handlebars/handlebars_test.go b/internal/adapter/handlebars/handlebars_test.go index 3a806ec4..db23147f 100644 --- a/internal/adapter/handlebars/handlebars_test.go +++ b/internal/adapter/handlebars/handlebars_test.go @@ -339,8 +339,8 @@ func TestFormatDateHelperElapsedViaTimeMultiplication(t *testing.T) { }, } - for _, tc := range cases { - t.Run(tc.want, func(t *testing.T) { + for i, tc := range cases { + t.Run(fmt.Sprintf("%d_%s", i, tc.want), func(t *testing.T) { templateContext := map[string]interface{}{"now": time.Now().Add(-tc.elapsed)} testString(t, "{{format-date now 'elapsed'}}", templateContext, tc.want)