]> git.eshelyaron.com Git - emacs.git/commitdiff
; * test/lisp/image/wallpaper-tests.el: Simplify last change.
authorStefan Kangas <stefankangas@gmail.com>
Wed, 19 Oct 2022 18:53:36 +0000 (20:53 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Wed, 19 Oct 2022 18:53:36 +0000 (20:53 +0200)
test/lisp/image/wallpaper-tests.el

index ab980a11bb6aa702f214be4fa0b205ce0853f4a2..a5d3343bd4d36e49a2e7beb695d871bc2c995ad9 100644 (file)
                  :init-action (lambda () (setq called t)))))
               (wallpaper-command (wallpaper--find-command))
               (wallpaper-command-args (wallpaper--find-command-args))
-              (start (time-convert nil 'integer))
-              (timeout 3) process)
+              process)
         (should (functionp (wallpaper-setter-init-action wallpaper--current-setter)))
         (setq process (wallpaper-set fil-jpg))
         ;; Wait for "touch" process to exit so temp file is removed.
-        (while (and (< (- (time-convert nil 'integer) start)
-                       timeout)
-                    (process-live-p process))
-          (sit-for 0.01))
+        (accept-process-output process 3)
         (should called)))))
 
 (ert-deftest wallpaper-set/calls-wallpaper-set-function ()