rename probe.Healthy to probe.Success and renam probe.Unhealthy to probe.Failure.

This commit is contained in:
Mike Danese
2015-01-27 10:22:53 -08:00
parent 6eb0b89cbd
commit 5dc6362f8a
14 changed files with 33 additions and 33 deletions

View File

@@ -46,11 +46,11 @@ func TestExec(t *testing.T) {
fake := FakeCmd{}
tests := []healthCheckTest{
// Ok
{probe.Healthy, false, []byte("OK"), nil},
{probe.Success, false, []byte("OK"), nil},
// Run returns error
{probe.Unknown, true, []byte("OK, NOT"), fmt.Errorf("test error")},
// Unhealthy
{probe.Unhealthy, false, []byte("Fail"), nil},
{probe.Failure, false, []byte("Fail"), nil},
}
for _, test := range tests {
fake.out = test.output