Uses the HealthCheck Clone() method in local_test.go.

This commit is contained in:
James Phillips 2016-04-11 00:20:24 -07:00
parent 3f340716fd
commit 9773cc28ca
1 changed files with 1 additions and 2 deletions

View File

@ -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,