From: Yuan Fu Date: Wed, 3 Jul 2024 07:31:16 +0000 (-0700) Subject: Fix treesit test (bug#71907) X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c79b8649aedaa12af3544756ae8bc241e534f70c;p=emacs.git 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) --- 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