From dfb4e595fff393ae79289fd70a69f25ae690c6ad Mon Sep 17 00:00:00 2001 From: Spark Date: Mon, 26 Oct 2026 10:23:06 -0400 Subject: [PATCH] =?UTF-8?q?fix(test):=20horodatage=20captur=C3=A9=20une=20?= =?UTF-8?q?fois=20(flake=20CI,=20=C3=A9cart=20d'1=20s)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit test_column_entry_times_ignores_comments évaluait _days_ago(3) à la création puis à l'assertion : une bascule de seconde entre les deux faisait échouer le run CI 2333 alors que le run jumeau (tag v0.33.0) et la suite locale passaient. --- tests/test_palier1.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/test_palier1.py b/tests/test_palier1.py index 6d2e086..1d99dfd 100644 --- a/tests/test_palier1.py +++ b/tests/test_palier1.py @@ -97,11 +97,15 @@ def test_metrics_counts_and_cycle_time(): def test_column_entry_times_ignores_comments(): + # Capturer l'horodatage UNE fois : _days_ago() réévalué à + # l'assertion basculait d'une seconde une fois sur ~N + # (échec CI 2333 du 2026-10-26, run jumeau vert). + entry = _days_ago(3) models.log_event("a/b", 1, "moved", to_column="todo", - created_at=_days_ago(3)) + created_at=entry) models.log_event("a/b", 1, "commented", created_at=_days_ago(0)) times = models.column_entry_times("a/b") - assert times[1] == _days_ago(3) + assert times[1] == entry # ── Panneau détail ─────────────────────────────────────────