mirror of https://github.com/status-im/consul.git
fix flaky test panic (#12446)
This commit is contained in:
parent
957146401e
commit
ca112f8721
|
@ -156,6 +156,9 @@ func TestLeader_FailedMember(t *testing.T) {
|
|||
if err != nil {
|
||||
r.Fatalf("err: %v", err)
|
||||
}
|
||||
if len(checks) != 1 {
|
||||
r.Fatalf("client missing check")
|
||||
}
|
||||
if got, want := checks[0].Status, api.HealthCritical; got != want {
|
||||
r.Fatalf("got status %q want %q", got, want)
|
||||
}
|
||||
|
@ -703,6 +706,9 @@ func TestLeader_Reconcile_Races(t *testing.T) {
|
|||
if err != nil {
|
||||
r.Fatalf("err: %v", err)
|
||||
}
|
||||
if len(checks) != 1 {
|
||||
r.Fatalf("client missing check")
|
||||
}
|
||||
if got, want := checks[0].Status, api.HealthCritical; got != want {
|
||||
r.Fatalf("got state %q want %q", got, want)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue