Skip to content

Commit

Permalink
chore(lint): Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
christophd committed Mar 7, 2024
1 parent 41713d0 commit 727e295
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/install/kamelets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ func TestLoadKamelet(t *testing.T) {
assert.Len(t, kamelet.GetLabels(), 3)
assert.Equal(t, "true", kamelet.GetLabels()[v1.KameletBundledLabel])
assert.Equal(t, "true", kamelet.GetLabels()[v1.KameletReadOnlyLabel])
assert.Equal(t, kamelet.GetAnnotations(), 2)
assert.Len(t, kamelet.GetAnnotations(), 2)
assert.NotNil(t, kamelet.GetAnnotations()[kamelVersionAnnotation])
}
6 changes: 3 additions & 3 deletions pkg/platform/defaults_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func TestIntegrationPlatformDefaults(t *testing.T) {
assert.Equal(t, v1.BuildOrderStrategySequential, ip.Status.Build.BuildConfiguration.OrderStrategy)
assert.Equal(t, defaults.BaseImage(), ip.Status.Build.BaseImage)
assert.Equal(t, defaults.LocalRepository, ip.Status.Build.Maven.LocalRepository)
assert.Equal(t, 3, ip.Status.Build.MaxRunningBuilds) // default for build strategy routine
assert.Equal(t, int32(3), ip.Status.Build.MaxRunningBuilds) // default for build strategy routine
assert.Len(t, ip.Status.Build.Maven.CLIOptions, 3)
assert.NotNil(t, ip.Status.Traits)
}
Expand Down Expand Up @@ -111,7 +111,7 @@ func TestApplyGlobalPlatformSpec(t *testing.T) {
assert.Equal(t, v1.TraitProfileOpenShift, ip.Status.Profile)
assert.Equal(t, v1.BuildStrategyRoutine, ip.Status.Build.BuildConfiguration.Strategy)
assert.Equal(t, v1.BuildOrderStrategyFIFO, ip.Status.Build.BuildConfiguration.OrderStrategy)
assert.Equal(t, 3, ip.Status.Build.MaxRunningBuilds) // default for build strategy routine
assert.Equal(t, int32(3), ip.Status.Build.MaxRunningBuilds) // default for build strategy routine
assert.Equal(t, len(global.Status.Build.Maven.CLIOptions), len(ip.Status.Build.Maven.CLIOptions))
assert.Equal(t, global.Status.Build.Maven.CLIOptions, ip.Status.Build.Maven.CLIOptions)
assert.NotNil(t, ip.Status.Traits)
Expand Down Expand Up @@ -279,7 +279,7 @@ func TestRetainLocalPlatformSpec(t *testing.T) {
assert.Equal(t, v1.TraitProfileKnative, ip.Status.Profile)
assert.Equal(t, v1.BuildStrategyPod, ip.Status.Build.BuildConfiguration.Strategy)
assert.Equal(t, v1.BuildOrderStrategyFIFO, ip.Status.Build.BuildConfiguration.OrderStrategy)
assert.Equal(t, 1, ip.Status.Build.MaxRunningBuilds)
assert.Equal(t, int32(1), ip.Status.Build.MaxRunningBuilds)
assert.Equal(t, len(global.Status.Build.Maven.CLIOptions), len(ip.Status.Build.Maven.CLIOptions))
assert.Equal(t, global.Status.Build.Maven.CLIOptions, ip.Status.Build.Maven.CLIOptions)
assert.NotNil(t, ip.Status.Traits)
Expand Down

0 comments on commit 727e295

Please sign in to comment.