You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/command/agent/structs_test.go

17 lines
326 B

package agent
import (
"github.com/hashicorp/consul/consul/structs"
"testing"
)
func TestAgentStructs_HealthCheck(t *testing.T) {
def := CheckDefinition{}
check := def.HealthCheck("node1")
// Health checks default to critical state
if check.Status != structs.HealthCritical {
t.Fatalf("bad: %v", check.Status)
}
}