Skip to content

Commit

Permalink
chore(lint): better naming (#672)
Browse files Browse the repository at this point in the history
chore(lint): better naming
  • Loading branch information
zregvart authored May 20, 2019
2 parents 42c1cfd + cd9f4ac commit e57a961
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/apis/camel/v1alpha1/integration_types_support_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
})
}
Expand Down

0 comments on commit e57a961

Please sign in to comment.