Skip to content

Commit

Permalink
Wait for pandoc processes to complete during testing
Browse files Browse the repository at this point in the history
* test/test-helper.el (jupyter-org-test-src-block-1): Do it.
  • Loading branch information
nnicandro committed Nov 18, 2024
1 parent b9d58d9 commit 8cc1aa3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/test-helper.el
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,12 @@ results instead of an equality match."
(when-let* ((req (jupyter-org-request-at-point)))
(jupyter-idle-sync req)))
(goto-char (or (org-babel-where-is-src-block-result) (point)))
(when (plist-get args :pandoc)
(let ((start (point)))
;; Wait until all pandoc processes have been completed.
(while (text-property-search-forward 'jupyter-pandoc)
(sleep-for 0.2)
(goto-char start))))
(let ((element (org-element-context)))
;; Handle empty results with just a RESULTS keyword
;;
Expand Down

0 comments on commit 8cc1aa3

Please sign in to comment.