diff --git a/command/agent/local_test.go b/command/agent/local_test.go index d8abfe58de..0b4e880fb3 100644 --- a/command/agent/local_test.go +++ b/command/agent/local_test.go @@ -731,8 +731,7 @@ func TestAgentAntiEntropy_Check_DeferSync(t *testing.T) { }) // Change the output in the catalog to force it out of sync. - eCopy := new(structs.HealthCheck) - *eCopy = *check + eCopy := check.Clone() eCopy.Output = "changed" reg := structs.RegisterRequest{ Datacenter: agent.config.Datacenter,