]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix treesit test (bug#71907)
authorYuan Fu <casouri@gmail.com>
Wed, 3 Jul 2024 07:31:16 +0000 (00:31 -0700)
committerEshel Yaron <me@eshelyaron.com>
Sun, 7 Jul 2024 13:16:49 +0000 (15:16 +0200)
* 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

index ce5dc76794ab6190b8d4f9569b537dab8a4c713c..3431ba5f4ddf6b1d2445e138418f5f902f567cfe 100644 (file)
@@ -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