Have Http Probe report "Unhealthy" on connection failure instead of "Unknown".

This commit is contained in:
saadali
2014-12-23 20:07:56 -08:00
parent ebb448dff0
commit 99acb9688c
3 changed files with 9 additions and 9 deletions

View File

@@ -131,10 +131,10 @@ func TestNewKubeletClient(t *testing.T) {
host := "127.0.0.1"
healthStatus, err := client.HealthCheck(host)
if healthStatus != health.Unknown {
t.Errorf("Expected %v and got %v.", health.Unknown, healthStatus)
if healthStatus != health.Unhealthy {
t.Errorf("Expected %v and got %v.", health.Unhealthy, healthStatus)
}
if err == nil {
t.Error("Expected a non nil error")
if err != nil {
t.Error("Expected a nil error")
}
}