diff --git a/cmd/mesh-controller/gate_rule_test.go b/cmd/mesh-controller/gate_rule_test.go index 79e7c491..2396937f 100644 --- a/cmd/mesh-controller/gate_rule_test.go +++ b/cmd/mesh-controller/gate_rule_test.go @@ -217,6 +217,11 @@ func TestAHealthyNodeEngineIsNeverHeldPastTwoMinutes(t *testing.T) { if g.Verdict != inventory.GatePassed || g.Passes != 2 { t.Fatalf("late readings, healthy throughout, at two minutes: %+v; want passed on two", g) } + g, judge = threeReadings(t, "mesh-host", time.Now()) + judge(2*time.Minute, healthGood) + if g.Verdict != inventory.GatePassed || g.Passes != 1 { + t.Fatalf("one healthy reading, at two minutes: %+v; want passed on it", g) + } } // A reading not yet healthy before the first healthy one is the build still starting: the two minutes still hold.