R-1342: a restore copy under the stable-start watch is not deletable (D62 gap); an app removed during the watch raises no alarm — tests red first; commit only
gates / gates (push) Successful in 31s
gates / gates (push) Successful in 31s
This commit is contained in:
1 parent
6c72e3ff34
commit
652a690e5d
10 files changed
+231
-1
No files matched your search
@@ -231,3 +231,18 @@ func TestD62_ADeleteRemovesOnlyThatCopyAndStoresTheEvent(t *testing.T) {
|
||||
t.Fatalf("second press code %d", code)
|
||||
}
|
||||
}
|
||||
|
||||
// R-1342: every reason a copy can be needed has its one-line sentence in both languages (the row's key is built from the
|
||||
// reason, so a missing key would show the raw key). RED-PROOF: remove restore_copy.needed.checking from BOTH bundles →
|
||||
// FAILS (seen 2026-10-29; a key missing only in en.json falls back to the Hungarian line — i18n_missing_gate counts that).
|
||||
func TestR1342_EveryNeededReasonHasItsSentence(t *testing.T) {
|
||||
f := newD62Fixture(t)
|
||||
for _, why := range []string{backup.RestoreCopyNeededHold, backup.RestoreCopyNeededPutBack, backup.RestoreCopyNeededUnknown, backup.RestoreCopyNeededChecking} {
|
||||
for _, lang := range []string{"hu", "en"} {
|
||||
key := "restore_copy.needed." + why
|
||||
if got := f.s.msgLang(lang, key); got == "" || got == key || strings.Contains(got, "restore_copy.") {
|
||||
t.Errorf("%s/%s renders %q", lang, key, got)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user