From 613d9ae211ebd9f92e0e0c0670f7a673efcab472 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 10 Jun 2024 21:22:47 +0300 Subject: [PATCH] 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) --- test/src/treesit-tests.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2