Skip to content

Commit e3157b5

Browse files
committed
Update the diff-hl-indirect-buffer-move-async test for no-thread async
1 parent 450b6a4 commit e3157b5

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

test/diff-hl-test.el

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,11 @@
140140
(diff-hl-mode 1)
141141
(diff-hl-update)
142142

143-
;; wait for all thread to complete.
144-
(dolist (thread (all-threads))
145-
(unless (eq thread main-thread)
146-
(thread-join thread)))
143+
(while (or (process-live-p
144+
(get-buffer-process " *diff-hl* "))
145+
(process-live-p
146+
(get-buffer-process " *diff-hl-reference* ")))
147+
(accept-process-output nil 0.05))
147148

148149
(diff-hl-previous-hunk)
149150
(should (looking-at "added"))

0 commit comments

Comments
 (0)