neovim

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

commit f363ea8547cc9d351f4231ce601dca8dabbcf876
parent 960b33a9d810a8f70423bbab614d024e0468f115
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Mon, 18 Aug 2025 12:53:40 +0800

test(tui_spec): fix another case of flakiness (#35374)


Diffstat:
Mtest/functional/terminal/tui_spec.lua | 11+++--------
1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua @@ -410,7 +410,7 @@ describe('TUI :connect', function() local server1_session = n.connect(server1) server1_session:request('nvim_command', 'qall!') - screen2:expect({ any = [[Process exited]] }) + screen2:expect({ any = vim.pesc('[Process exited 0]') }) screen2:detach() @@ -458,13 +458,8 @@ describe('TUI :connect', function() '--server', server2, }) - screen3:expect([[ - Remote ui failed to start: connection refused | - | - [Process exited 1]^ | - |*3 - {5:-- TERMINAL --} | - ]]) + screen3:expect({ any = 'Remote ui failed to start: connection refused' }) + screen3:expect({ any = vim.pesc('[Process exited 1]') }) screen3:detach() end) end)