From da0ee8a10b01447eb4d9a46f7dbb347828249d32 Mon Sep 17 00:00:00 2001 From: patrick Date: Thu, 15 Oct 2026 01:06:03 +0200 Subject: [PATCH] CUT-02: Fehlertest-Flakyness beheben (Objektauswahl auf retain_until > now() einschraenken) Co-Authored-By: Claude Sonnet 5 --- internal/cutoverorchestrator/generalprobe_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cutoverorchestrator/generalprobe_test.go b/internal/cutoverorchestrator/generalprobe_test.go index 32976513..6fbac6c4 100644 --- a/internal/cutoverorchestrator/generalprobe_test.go +++ b/internal/cutoverorchestrator/generalprobe_test.go @@ -124,7 +124,7 @@ func (d *Dryrun) injectShiftedRetentionDate(ctx context.Context) (Outcome, error } tag, err := pool.Exec(ctx, ` UPDATE retention_objects SET retain_until = retain_until + interval '48 hours' - WHERE id = (SELECT id FROM retention_objects WHERE retain_until IS NOT NULL ORDER BY id LIMIT 1) + WHERE id = (SELECT id FROM retention_objects WHERE retain_until > now() ORDER BY id LIMIT 1) `) if err != nil { return Outcome{}, err