This commit is contained in:
ponzischeme89
2026-08-20 07:54:03 +12:00
parent 769fe01c84
commit 434371e9cf
37 changed files with 1767 additions and 102 deletions
+10
View File
@@ -362,6 +362,16 @@ func TestServiceStatusCarriesEmbyHealthAndPreferenceRevision(t *testing.T) {
if _, ok := body["preferencesRevision"]; !ok {
t.Fatalf("status response carried no preferences revision: %v", body)
}
// Likewise present with no store behind it. This is the whole delivery channel for an
// operator's hero change: a television comparing against a missing field would go on
// drawing yesterday's hero until it was next restarted.
hero, ok := body["hero"].(map[string]any)
if !ok {
t.Fatalf("status response carried no hero revision: %v", body)
}
if revision, _ := hero["revision"].(string); revision == "" {
t.Fatalf("hero revision was empty; nothing would ever be refetched: %v", hero)
}
}
// With the probe switched off there is nothing to say, and a client must not be handed a