Skip to content

Commit

Permalink
add/subtract 10 seconds for extra buffer time in failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ntBre committed Dec 25, 2024
1 parent 5ef0c4f commit aa5aedb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test.el
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ a post-event cutoff set."
"Check that `org-alert-check` sends an alert from `test.org` with
a post-event cutoff set but the current time set appropriately."
(with-test-org nil
(with-current-time nil
(with-current-time '(25704 52667 0 0) ; 9:40:11
(let ((org-alert-notify-after-event-cutoff 60))
(org-alert-check)
(should (= (length test-alert-notifications) 1))))))
Expand All @@ -88,6 +88,6 @@ a post-event cutoff set but the current time set appropriately."

(ert-deftest check-alert-none ()
(with-test-org "plain.org"
(with-current-time (25704 52955 0 0) ; 9:44:59
(with-current-time (25704 52945 0 0) ; 9:44:49
(org-alert-check)
(should (= (length test-alert-notifications) 0)))))

0 comments on commit aa5aedb

Please sign in to comment.