diff options
| author | Craig Jennings <c@cjennings.net> | 2026-02-23 18:48:11 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-02-23 18:48:11 -0600 |
| commit | 3060e7111a2d180168bc730434576333b79c1e90 (patch) | |
| tree | eeba624f0ddc03cb707eebbd62898c9b07766f20 | |
| parent | 2205f78ae799b92ff6e25c09e98b42e42f7e88d1 (diff) | |
| download | chime-3060e7111a2d180168bc730434576333b79c1e90.tar.gz chime-3060e7111a2d180168bc730434576333b79c1e90.zip | |
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.
| -rw-r--r-- | tests/test-integration-startup.el | 6 |
1 files changed, 6 insertions, 0 deletions
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) |
