From c4a6452f21f6ba4fefe33e400d6597a005daa412 Mon Sep 17 00:00:00 2001 From: jochen Date: Mon, 2 Nov 2026 02:54:35 +0100 Subject: [PATCH] Give mesh-mail-reader's two acceptance tests a due date a week from now, so they do not expire Both stand-in judges answered the fixed due date 2026-11-01; since 2026-11-02 00:00 UTC that date is past, signalEntries drops the mail, no tell is sent, and both tests time out on every check that rebuilds the module (met in the enrolment group's check of issue 774, 2026-11-02 02:50). Claude-Session: https://claude.ai/code/session_01NcbgfJ9Gum47zkFKWRaovL --- .../cmd/mesh-mail-reader/acceptance_integration_test.go | 2 +- .../cmd/mesh-mail-reader/catchup_integration_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/mesh-mail-reader/cmd/mesh-mail-reader/acceptance_integration_test.go b/modules/mesh-mail-reader/cmd/mesh-mail-reader/acceptance_integration_test.go index aa8ebf4f..38325a9f 100644 --- a/modules/mesh-mail-reader/cmd/mesh-mail-reader/acceptance_integration_test.go +++ b/modules/mesh-mail-reader/cmd/mesh-mail-reader/acceptance_integration_test.go @@ -149,7 +149,7 @@ func TestAcceptanceOneMatteringMailSendsExactlyOneTellNamingIt(t *testing.T) { r := startReader(t) r.stand.MailAccounts = oneAccountAnswer("bob") r.stand.MailRead = func(map[string]any) (any, error) { return map[string]any{"text": "pay by friday"}, nil } - r.stand.Judge = judgeEveryMailAs("matters", "", "due friday", "2026-11-01") + r.stand.Judge = judgeEveryMailAs("matters", "", "due friday", time.Now().UTC().AddDate(0, 0, 7).Format("2006-01-02")) var checked recorded[string] r.stand.MessengerCheck = func(args map[string]any) (any, error) { diff --git a/modules/mesh-mail-reader/cmd/mesh-mail-reader/catchup_integration_test.go b/modules/mesh-mail-reader/cmd/mesh-mail-reader/catchup_integration_test.go index 665114f8..57c02a77 100644 --- a/modules/mesh-mail-reader/cmd/mesh-mail-reader/catchup_integration_test.go +++ b/modules/mesh-mail-reader/cmd/mesh-mail-reader/catchup_integration_test.go @@ -82,7 +82,7 @@ func TestAcceptanceRefusedJudgementIsUnhealthyThenCatchesUpInPublishedOrder(t *t } mails := make([]map[string]any, len(ids)) for i, id := range ids { - mails[i] = map[string]any{"id": id, "mark": "matters", "summary": "s", "why": "pay", "due-date": "2026-11-01"} + mails[i] = map[string]any{"id": id, "mark": "matters", "summary": "s", "why": "pay", "due-date": time.Now().UTC().AddDate(0, 0, 7).Format("2006-01-02")} } raw, _ := json.Marshal(map[string]any{"mails": mails}) return map[string]any{"answer": json.RawMessage(raw)}, nil