From d44ed3aba062ff41154c91bcb8966d784cd51ebe Mon Sep 17 00:00:00 2001 From: Pierre Gimalac Date: Wed, 27 Nov 2024 16:07:39 +0100 Subject: [PATCH] fix: use of NotSame --- .../snmp/internal/checkconfig/config_test.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkg/collector/corechecks/snmp/internal/checkconfig/config_test.go b/pkg/collector/corechecks/snmp/internal/checkconfig/config_test.go index d8536a4931cb6..07b6ba9eefaa4 100644 --- a/pkg/collector/corechecks/snmp/internal/checkconfig/config_test.go +++ b/pkg/collector/corechecks/snmp/internal/checkconfig/config_test.go @@ -2138,14 +2138,14 @@ func TestCheckConfig_Copy(t *testing.T) { assert.Equal(t, &config, configCopy) - assert.NotSame(t, config.RequestedMetrics, configCopy.RequestedMetrics) - assert.NotSame(t, config.RequestedMetricTags, configCopy.RequestedMetricTags) - assert.NotSame(t, config.Metrics, configCopy.Metrics) - assert.NotSame(t, config.MetricTags, configCopy.MetricTags) - assert.NotSame(t, config.ProfileTags, configCopy.ProfileTags) - assert.NotSame(t, config.ExtraTags, configCopy.ExtraTags) - assert.NotSame(t, config.InstanceTags, configCopy.InstanceTags) - assert.NotSame(t, config.DeviceIDTags, configCopy.DeviceIDTags) + assert.NotSame(t, &config.RequestedMetrics, &configCopy.RequestedMetrics) + assert.NotSame(t, &config.RequestedMetricTags, &configCopy.RequestedMetricTags) + assert.NotSame(t, &config.Metrics, &configCopy.Metrics) + assert.NotSame(t, &config.MetricTags, &configCopy.MetricTags) + assert.NotSame(t, &config.ProfileTags, &configCopy.ProfileTags) + assert.NotSame(t, &config.ExtraTags, &configCopy.ExtraTags) + assert.NotSame(t, &config.InstanceTags, &configCopy.InstanceTags) + assert.NotSame(t, &config.DeviceIDTags, &configCopy.DeviceIDTags) } func TestCheckConfig_CopyWithNewIP(t *testing.T) {