mesh/merge-gate pass: builds mesh-host → ace, g14, novox, shanks; no bus step; every machine composes with the change as it did without (4 of 4 compose)
mesh/repo-check pass: its merge-check.sh passed
mesh/delivery delivered
mesh/delivery-group group fix/458-restarts-say-what-they-count delivered: every member is delivered
Beside the state it read as restarts since then (novox/hq issue 458).
21 lines
761 B
Go
21 lines
761 B
Go
package main
|
|
|
|
import (
|
|
"strings"
|
|
"testing"
|
|
|
|
"github.com/novox/mesh-host/internal/liveness"
|
|
)
|
|
|
|
// The restart count the engine says is its own since it began watching the resource, never since the state
|
|
// began (novox/hq issue 458).
|
|
func TestAnUnhealthyResourceSaysWhatItsRestartCountCounts(t *testing.T) {
|
|
r := liveness.State{Resource: liveness.Resource{ID: "messenger.own-runtime", Kind: "process",
|
|
Target: "messenger-runtime.service"}, State: liveness.Unhealthy, Reason: liveness.ReasonRestarting, Restarts: 3890}
|
|
said := unhealthyWords(r)
|
|
if !strings.Contains(said, "3890 automatic restart(s) since this engine began watching it") ||
|
|
strings.Contains(said, "counted") {
|
|
t.Fatalf("the restart count is not said as what it counts: %s", said)
|
|
}
|
|
}
|