From 8cc1aa383715dce6b66b878b76edeb42a7fdac11 Mon Sep 17 00:00:00 2001 From: Nathaniel Nicandro Date: Mon, 18 Nov 2024 10:18:43 -0600 Subject: [PATCH] Wait for pandoc processes to complete during testing * test/test-helper.el (jupyter-org-test-src-block-1): Do it. --- test/test-helper.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test-helper.el b/test/test-helper.el index 023640ed..cbfa406e 100644 --- a/test/test-helper.el +++ b/test/test-helper.el @@ -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 ;;