Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rakesh-garimella committed Aug 28, 2024
1 parent b0a9e61 commit 75249fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/resources/fluentbit/resources_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func TestMakeMetricsService(t *testing.T) {

port, err := strconv.ParseInt(service.Annotations["prometheus.io/port"], 10, 16)
require.NoError(t, err)
require.Equal(t, port, service.Spec.Ports[0].Port)
require.Equal(t, int32(port), service.Spec.Ports[0].Port) //nolint:gosec // parseInt returns int64. This is a testfile so not part of binary
}

func TestMakeExporterMetricsService(t *testing.T) {
Expand All @@ -123,7 +123,7 @@ func TestMakeExporterMetricsService(t *testing.T) {

port, err := strconv.ParseInt(service.Annotations["prometheus.io/port"], 10, 16)
require.NoError(t, err)
require.Equal(t, port, service.Spec.Ports[0].Port)
require.Equal(t, int32(port), service.Spec.Ports[0].Port) //nolint:gosec // parseInt returns int64. This is a testfile so not part of binary
}

func TestMakeConfigMap(t *testing.T) {
Expand Down

0 comments on commit 75249fa

Please sign in to comment.