From a12443955939185bdfaf5f35bb47c3aa8f2a07bd Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Wed, 4 Feb 2026 19:03:06 -0500 Subject: [PATCH] test(lsp): retry "on_type_formatting enables formatting on type" #37711 FAILED test/functional/plugin/lsp/on_type_formatting_spec.lua @ 59: vim.lsp.on_type_formatting enables formatting on type test/functional\plugin\lsp\on_type_formatting_spec.lua:65: retry() attempts: 1 test/functional\plugin\lsp\on_type_formatting_spec.lua:66: Expected objects to be the same. Passed in: (table: 0x01772f47b6d8) { [1] = 'int main() {' *[2] = ' int hi = 5' [3] = '}' } Expected: (table: 0x017731aad3a8) { [1] = 'int main() {' *[2] = ' int hi = 5;' [3] = '}' } stack traceback: test\testutil.lua:89: in function 'retry' test/functional\plugin\lsp\on_type_formatting_spec.lua:65: in function --- test/functional/plugin/lsp/on_type_formatting_spec.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/plugin/lsp/on_type_formatting_spec.lua b/test/functional/plugin/lsp/on_type_formatting_spec.lua index 211350335e..a34e4f8495 100644 --- a/test/functional/plugin/lsp/on_type_formatting_spec.lua +++ b/test/functional/plugin/lsp/on_type_formatting_spec.lua @@ -62,7 +62,7 @@ describe('vim.lsp.on_type_formatting', function() vim.api.nvim_win_set_cursor(win, { 2, 0 }) end) feed('A = 5') - retry(nil, 100, function() + retry(2, nil, function() eq( { 'int main() {',