mirror of
https://github.com/status-im/consul.git
synced 2025-02-18 08:36:46 +00:00
demo nomad problem
This commit is contained in:
parent
89af3bc8f5
commit
d4790b2827
@ -640,6 +640,15 @@ func TestStructs_HealthCheck_IsSame(t *testing.T) {
|
|||||||
checkStringField(&other.ServiceName)
|
checkStringField(&other.ServiceName)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestStructs_HealthCheck_Unmarshalling(t *testing.T) {
|
||||||
|
d := &HealthCheckDefinition{}
|
||||||
|
buf, err := d.MarshalJSON()
|
||||||
|
require.NoError(t, err)
|
||||||
|
require.NotContains(t, string(buf), `"Interval":""`)
|
||||||
|
require.NotContains(t, string(buf), `"Timeout":""`)
|
||||||
|
require.NotContains(t, string(buf), `"DeregisterCriticalServiceAfter":""`)
|
||||||
|
}
|
||||||
|
|
||||||
func TestStructs_HealthCheck_Clone(t *testing.T) {
|
func TestStructs_HealthCheck_Clone(t *testing.T) {
|
||||||
hc := &HealthCheck{
|
hc := &HealthCheck{
|
||||||
Node: "node1",
|
Node: "node1",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user