Skip to content

Commit

Permalink
fix: use of NotSame
Browse files Browse the repository at this point in the history
  • Loading branch information
pgimalac committed Nov 27, 2024
1 parent bcf67b9 commit d44ed3a
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d44ed3a

Please sign in to comment.