Add result.Connected in integration tests
This commit is contained in:
parent
3ecfe4d322
commit
ecef3d9538
@ -15,6 +15,9 @@ func TestIntegrationEvaluateHealth(t *testing.T) {
|
|||||||
if !result.ConditionResults[0].Success {
|
if !result.ConditionResults[0].Success {
|
||||||
t.Errorf("Condition '%s' should have been a success", condition)
|
t.Errorf("Condition '%s' should have been a success", condition)
|
||||||
}
|
}
|
||||||
|
if !result.Connected {
|
||||||
|
t.Error("Because the connection has been established, result.Connected should've been true")
|
||||||
|
}
|
||||||
if !result.Success {
|
if !result.Success {
|
||||||
t.Error("Because all conditions passed, this should have been a success")
|
t.Error("Because all conditions passed, this should have been a success")
|
||||||
}
|
}
|
||||||
@ -31,6 +34,9 @@ func TestIntegrationEvaluateHealthWithFailure(t *testing.T) {
|
|||||||
if result.ConditionResults[0].Success {
|
if result.ConditionResults[0].Success {
|
||||||
t.Errorf("Condition '%s' should have been a failure", condition)
|
t.Errorf("Condition '%s' should have been a failure", condition)
|
||||||
}
|
}
|
||||||
|
if !result.Connected {
|
||||||
|
t.Error("Because the connection has been established, result.Connected should've been true")
|
||||||
|
}
|
||||||
if result.Success {
|
if result.Success {
|
||||||
t.Error("Because one of the conditions failed, success should have been false")
|
t.Error("Because one of the conditions failed, success should have been false")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user