mirror of
https://github.com/status-im/consul.git
synced 2025-02-23 10:58:25 +00:00
Uses the HealthCheck Clone() method in local_test.go.
This commit is contained in:
parent
ed86e5cc72
commit
244174d2c0
@ -731,8 +731,7 @@ func TestAgentAntiEntropy_Check_DeferSync(t *testing.T) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
// Change the output in the catalog to force it out of sync.
|
// Change the output in the catalog to force it out of sync.
|
||||||
eCopy := new(structs.HealthCheck)
|
eCopy := check.Clone()
|
||||||
*eCopy = *check
|
|
||||||
eCopy.Output = "changed"
|
eCopy.Output = "changed"
|
||||||
reg := structs.RegisterRequest{
|
reg := structs.RegisterRequest{
|
||||||
Datacenter: agent.config.Datacenter,
|
Datacenter: agent.config.Datacenter,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user