diff options
Diffstat (limited to 'test/lisp/autorevert-tests.el')
-rw-r--r-- | test/lisp/autorevert-tests.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/lisp/autorevert-tests.el b/test/lisp/autorevert-tests.el index 6f186973ee7..043f80de49e 100644 --- a/test/lisp/autorevert-tests.el +++ b/test/lisp/autorevert-tests.el @@ -39,7 +39,9 @@ (null (string-match (format-message "Reverting buffer `%s'." (buffer-name buffer)) (buffer-string))) - (read-event nil nil 0.1))))) + (if (with-current-buffer buffer auto-revert-use-notify) + (read-event nil nil 0.1) + (sleep-for 0.1)))))) (ert-deftest auto-revert-test00-auto-revert-mode () "Check autorevert for a file." |