Skip to content

Commit 8cc1aa3

Browse files
committed
Wait for pandoc processes to complete during testing
* test/test-helper.el (jupyter-org-test-src-block-1): Do it.
1 parent b9d58d9 commit 8cc1aa3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/test-helper.el

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,12 @@ results instead of an equality match."
583583
(when-let* ((req (jupyter-org-request-at-point)))
584584
(jupyter-idle-sync req)))
585585
(goto-char (or (org-babel-where-is-src-block-result) (point)))
586+
(when (plist-get args :pandoc)
587+
(let ((start (point)))
588+
;; Wait until all pandoc processes have been completed.
589+
(while (text-property-search-forward 'jupyter-pandoc)
590+
(sleep-for 0.2)
591+
(goto-char start))))
586592
(let ((element (org-element-context)))
587593
;; Handle empty results with just a RESULTS keyword
588594
;;

0 commit comments

Comments
 (0)