Browse Source

fix flaky test panic (#12446)

pull/12449/head
R.B. Boyer 3 years ago committed by GitHub
parent
commit
ca112f8721
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      agent/consul/leader_test.go

6
agent/consul/leader_test.go

@ -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…
Cancel
Save