diff options
author | Tomi Ollila <tomi.ollila@iki.fi> | 2012-08-05 14:13:01 +0300 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2012-08-29 19:06:07 -0300 |
commit | f791cc9247dfac8640c8896bad9d9c1a1e70edfc (patch) | |
tree | 64620543f026c67647b2fd94f45a862b1360bcb5 /test | |
parent | 1f30f7d290f2989fba610c625e3cca6c6df1d118 (diff) |
test: emacs: call accept-process-output in notmuch-test-wait
notmuch-test-wait called sleep-for in a loop to wait unconditionally 0.1
seconds while waiting for process to exit.
accept-process-output returns as soon as there is any data available
from process, so using it avoids unnecessary fixed delays.
Both of these functions run process sentinels.
Diffstat (limited to 'test')
-rw-r--r-- | test/test-lib.el | 2 |
1 files changed, 1 insertions, 1 deletions
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." |