aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-01-21 18:54:17 +0800
committerGitHub <noreply@github.com>2023-01-21 18:54:17 +0800
commitfb805bb8b791b0266072b2415651cb54020d5098 (patch)
treebaf0d616868ebece976b2e1656588abfdeee4a90 /test/functional
parenteec979ca8160ae4230b63d406b2dae4d3e17d500 (diff)
downloadrneovim-fb805bb8b791b0266072b2415651cb54020d5098.tar.gz
rneovim-fb805bb8b791b0266072b2415651cb54020d5098.tar.bz2
rneovim-fb805bb8b791b0266072b2415651cb54020d5098.zip
fix(remote): don't leak memory on failure to connect to server (#21931)
Also fix the race between output and resize in the test for this.
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/terminal/tui_spec.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua
index 35dc22ae80..b28728057f 100644
--- a/test/functional/terminal/tui_spec.lua
+++ b/test/functional/terminal/tui_spec.lua
@@ -2410,9 +2410,7 @@ describe("TUI as a client", function()
clear()
local screen = thelpers.screen_setup(0,
string.format([=[["%s", "-u", "NONE", "-i", "NONE", "--server", "127.0.0.1:2436546", "--remote-ui"]]=],
- nvim_prog))
-
- screen:try_resize(60, 7)
+ nvim_prog), 60)
screen:expect([[
Remote ui failed to start: {MATCH:.*}|