hub (unreleased): review fix 1 — „told” is told at an address: a changed notification address is told again and waits again (the hole D84 exists for)
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
1 parent
cbfeeb626e
commit
a6f4aa0b64
10 files changed
+412
-44
No files matched your search
@@ -164,3 +164,17 @@ func TestReview3_ANameThatCannotBeToldIsNeverAgreed(t *testing.T) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Review finding 1, through the window: told 31 days ago at one address, and the household's address is another one
|
||||
// today — nothing is agreed, and the answer says why.
|
||||
func TestReview1_Window_ToldAtAnotherAddressIsNotTold(t *testing.T) {
|
||||
s, _ := endedFixture(t) // vikunja: absent 31 days, told 31 days ago at the fixture's address
|
||||
claim := EndedClaim{App: "vikunja", SnapshotIDs: []string{eid(0)}}
|
||||
if err := s.Store.SaveNotificationPrefs("c1", "someone-else@example.net", nil, 6); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
g := openGranted(t, s, 20, claim)
|
||||
if len(g.EndedAllowed) != 0 || !hasReason(g.EndedRefused, "address changed") {
|
||||
t.Fatalf("agreed %v, refused %+v", shortIDs(g.EndedAllowed), g.EndedRefused)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user