From 3060e7111a2d180168bc730434576333b79c1e90 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Mon, 23 Feb 2026 18:48:11 -0600 Subject: Fix flaky validation failure test by resetting shared state The test checks that chime-modeline-string and chime--upcoming-events are nil after early return, but previous tests could leave them set. Reset these and chime--validation-retry-count at test start. --- tests/test-integration-startup.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test-integration-startup.el b/tests/test-integration-startup.el index bf2d8e7..63d7c76 100644 --- a/tests/test-integration-startup.el +++ b/tests/test-integration-startup.el @@ -245,6 +245,12 @@ This validates the early-return mechanism works correctly." ;; Reset validation state so chime-check will validate on next call (setq chime--validation-done nil) + (setq chime--validation-retry-count 0) + + ;; Clear state from any previous tests so we can verify + ;; early return doesn't set these + (setq chime--upcoming-events nil) + (setq chime-modeline-string nil) ;; Call chime-check - should return early without error ;; Before the fix, this would throw: (no-catch --cl-block-chime-check-- nil) -- cgit v1.2.3