From: Eli Zaretskii Date: Mon, 10 Jun 2024 18:22:47 +0000 (+0300) Subject: Fix treesit-tests X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=613d9ae211ebd9f92e0e0c0670f7a673efcab472;p=emacs.git Fix treesit-tests * test/src/treesit-tests.el (treesit-node-api): Adapt the test to changes in 'treesit_check_node'. (Bug#71012) (cherry picked from commit ffd2c492a0e0f70a66f113fe4ea9c50081818a44) --- diff --git a/test/src/treesit-tests.el b/test/src/treesit-tests.el index 5d0c92ae8a6..ce5dc76794a 100644 --- a/test/src/treesit-tests.el +++ b/test/src/treesit-tests.el @@ -183,7 +183,8 @@ parser)) (should (equal t (treesit-node-check root-node 'live))) (kill-buffer) - (should (equal nil (treesit-node-check root-node 'live)))))) + (should-error (treesit-node-check root-node 'live) + :type 'treesit-node-buffer-killed)))) ;;; Indirect buffer