From c79b8649aedaa12af3544756ae8bc241e534f70c Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Wed, 3 Jul 2024 00:31:16 -0700 Subject: [PATCH] Fix treesit test (bug#71907) * test/src/treesit-tests.el (treesit-node-check): Re-parse buffer before checking for node outdated-ness. (cherry picked from commit b085d683962b65d3e138950dd660779e398134fa) --- test/src/treesit-tests.el | 1 + 1 file changed, 1 insertion(+) diff --git a/test/src/treesit-tests.el b/test/src/treesit-tests.el index ce5dc76794a..3431ba5f4dd 100644 --- a/test/src/treesit-tests.el +++ b/test/src/treesit-tests.el @@ -842,6 +842,7 @@ visible_end.)" 'missing)) (goto-char (point-max)) (insert "]") + (treesit-parser-root-node parser) (should (treesit-node-check array-node 'outdated)))) ;;; Defun navigation -- 2.39.2