controller v0.264.0: the household is told when an update is undone or held, in its language
gates / gates (push) Successful in 25s
gates / gates (push) Successful in 25s
app_update_undone / app_update_held events (09 decision 15), on by default and seeded once on existing boxes; R-606 update sentences as key+args rendered per reader; R-646 startup applied-meta backfill for apps current with the catalog; R-620 a disabled notifier WARNs once per event type. Needs hub v0.120.0. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
@@ -45,6 +45,11 @@ func TestUndo_HoldSentenceSaysTheUndoWasTriedAndTheDataState(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// A KNOWN state before the language check — the loop above ranges over a map, so its last state is
|
||||
// random (this test read "half" and failed once for exactly that reason, 2026-09-23).
|
||||
if err := m.HoldAfterFailedUpdateHolding("app", at, copyAt, UpdateTierSecondDrive, "", "not_started"); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if err := m.settings.SetLanguage("en"); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -52,7 +57,11 @@ func TestUndo_HoldSentenceSaysTheUndoWasTriedAndTheDataState(t *testing.T) {
|
||||
if !strings.HasPrefix(why, "The update did not succeed, and the automatic undo did not either. The data is back as it was before the update") {
|
||||
t.Errorf("an English box gets the English prefix, got %q", why)
|
||||
}
|
||||
if strings.Contains(why, "automatikus visszaállítás") {
|
||||
t.Errorf("the Hungarian prefix must be GONE on an English box, got %q", why)
|
||||
// v0.264.0 (R-606): the WHOLE sentence is English now, not only the prefix.
|
||||
if !strings.Contains(why, "The update of app at 2026-09-23 10:00 did not succeed") || !strings.Contains(why, "second drive, 2026-09-23 03:30") {
|
||||
t.Errorf("the hold's own sentence must be English on an English box, got %q", why)
|
||||
}
|
||||
if strings.Contains(why, "automatikus visszaállítás") || strings.Contains(why, "frissítése") || strings.Contains(why, "meghajtó") {
|
||||
t.Errorf("no Hungarian may remain on an English box, got %q", why)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user