Say I have a function that is called on an idle timer:
(defun tmp:create () (mkdir "test")) (run-with-idle-time 3 nil #'tmp:create)
How can I test that this function works?
Using something like
(ert-deftest async () "" (should-not (file-exists-p "test")) (sleep-for 4) (should (file-exists-p "test")))