diff --git a/test/test-lib.el b/test/test-lib.el index 5dd6271c..52d99361 100644 --- a/test/test-lib.el +++ b/test/test-lib.el @@ -38,7 +38,7 @@ (defun notmuch-test-wait () "Wait for process completion." (while (get-buffer-process (current-buffer)) - (sleep-for 0.1))) + (accept-process-output nil 0.1))) (defun test-output (&optional filename) "Save current buffer to file FILENAME. Default FILENAME is OUTPUT."