Skip to content

Commit

Permalink
Merge pull request #599 from kaushalmodi/fix-negative-time-on-GHA
Browse files Browse the repository at this point in the history
fix: Elapsed time was being printed as a negative value on GHA
  • Loading branch information
kaushalmodi committed Mar 18, 2022
2 parents 6e4f74d + 5cbe31e commit 917bab6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/setup-ox-hugo.el
Expand Up @@ -267,10 +267,13 @@ to be installed.")
;; tests work.
(defun ox-hugo-test/current-time-override (&rest args)
"Hard-code the 'current time' so that the lastmod tests are reproducible.
`ox-hugo' uses `org-current-time' to determine the \"lastmod\" value.
Fake current time: 2100/12/21 00:00:00 (arbitrary)."
(encode-time 0 0 0 21 12 2100))
(advice-add 'current-time :override #'ox-hugo-test/current-time-override)
;; (advice-remove 'current-time #'ox-hugo-test/current-time-override)
(advice-add 'org-current-time :override #'ox-hugo-test/current-time-override)
;; (advice-remove 'org-current-time #'ox-hugo-test/current-time-override)

;; issue # 272
(load (expand-file-name "test/issue-272-chkbox-items-to-front-matter.el"
Expand Down

0 comments on commit 917bab6

Please sign in to comment.