The controller passes its first-node gate on one reading (ADR 0351) #310

Merged
mesh-admin merged 4 commits from feat/351-the-controller-passes-on-one-reading into main 2026-10-13 21:14:27 +00:00
Showing only changes of commit 41eefc2f8c - Show all commits
+5
View File
@@ -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.