mirror of
https://github.com/neovim/neovim.git
synced 2026-07-09 10:59:38 +00:00
test(lsp): retry on-type formatting assertions #40602
This commit is contained in:
@@ -111,7 +111,7 @@ describe('vim.lsp.on_type_formatting', function()
|
||||
vim.api.nvim_win_set_cursor(win, { 2, 0 })
|
||||
end)
|
||||
feed('A =')
|
||||
retry(nil, 100, function()
|
||||
retry(2, nil, function()
|
||||
eq(
|
||||
{
|
||||
'int main() {',
|
||||
@@ -158,7 +158,7 @@ describe('vim.lsp.on_type_formatting', function()
|
||||
vim.lsp.buf_attach_client(buf, _G.server_id)
|
||||
end)
|
||||
feed('A = 5')
|
||||
retry(nil, 100, function()
|
||||
retry(2, nil, function()
|
||||
eq(
|
||||
{
|
||||
'int main() {',
|
||||
|
||||
Reference in New Issue
Block a user