]> git.notmuchmail.org Git - notmuch/blobdiff - test/test-lib.el
test: emacs: call accept-process-output in notmuch-test-wait
[notmuch] / test / test-lib.el
index 5dd6271c99dceb16417d947b87a731874d7c7c72..52d993617ff0d910e9abcb5d60564e5bc8dc602a 100644 (file)
@@ -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."