From 75249faa33efe96705306309135f3a85febff05b Mon Sep 17 00:00:00 2001 From: Rakesh Garimella Date: Wed, 28 Aug 2024 15:50:43 +0200 Subject: [PATCH] fix --- internal/resources/fluentbit/resources_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/resources/fluentbit/resources_test.go b/internal/resources/fluentbit/resources_test.go index 6e2ba673a..676ff7087 100644 --- a/internal/resources/fluentbit/resources_test.go +++ b/internal/resources/fluentbit/resources_test.go @@ -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) { @@ -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) {