diff --git a/pkg/apis/camel/v1alpha1/integration_types_support_test.go b/pkg/apis/camel/v1alpha1/integration_types_support_test.go index c6a4c23bd7..8269c30c1f 100644 --- a/pkg/apis/camel/v1alpha1/integration_types_support_test.go +++ b/pkg/apis/camel/v1alpha1/integration_types_support_test.go @@ -36,16 +36,16 @@ func TestAllLanguages(t *testing.T) { func TestLanguageFromName(t *testing.T) { for _, l := range Languages { - l := l - t.Run(string(l), func(t *testing.T) { + language := l + t.Run(string(language), func(t *testing.T) { code := SourceSpec{ DataSpec: DataSpec{ - Name: fmt.Sprintf("code.%s", l), + Name: fmt.Sprintf("code.%s", language), }, } - if l != code.InferLanguage() { - t.Errorf("got %s, want %s", code.InferLanguage(), l) + if language != code.InferLanguage() { + t.Errorf("got %s, want %s", code.InferLanguage(), language) } }) }