neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit a12443955939185bdfaf5f35bb47c3aa8f2a07bd
parent bdd886622d4d4ae29334248b3e7451c59be0f409
Author: Justin M. Keyes <justinkz@gmail.com>
Date:   Wed,  4 Feb 2026 19:03:06 -0500

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:59>
Diffstat:
Mtest/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 @@ -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() {',