diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-08-20 22:04:46 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-08-27 21:19:10 +0200 |
commit | 1fdae25b2b932439fdef9e70b42e82e3153b937a (patch) | |
tree | b7923363d68b46f6016d07a999be6b0da51413e1 | |
parent | 517bf99ddb79ca27b13491572a9439e982409abc (diff) | |
download | rneovim-1fdae25b2b932439fdef9e70b42e82e3153b937a.tar.gz rneovim-1fdae25b2b932439fdef9e70b42e82e3153b937a.tar.bz2 rneovim-1fdae25b2b932439fdef9e70b42e82e3153b937a.zip |
test/tui_spec: connect to child session
-rw-r--r-- | test/functional/terminal/tui_spec.lua | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua index 6b12c1a889..e63d47bbc2 100644 --- a/test/functional/terminal/tui_spec.lua +++ b/test/functional/terminal/tui_spec.lua @@ -25,12 +25,14 @@ if helpers.pending_win32(pending) then return end describe('TUI', function() local screen + local child_session before_each(function() clear() - screen = thelpers.screen_setup(0, '["'..nvim_prog - ..'", "-u", "NONE", "-i", "NONE", "--cmd", "' - ..nvim_set..' laststatus=2 background=dark'..'"]') + local child_server = helpers.new_pipename() + screen = thelpers.screen_setup(0, + string.format([=[["%s", "--listen", "%s", "-u", "NONE", "-i", "NONE", "--cmd", "%s laststatus=2 background=dark"]]=], + nvim_prog, child_server, nvim_set)) screen:expect([[ {1: } | {4:~ }| @@ -40,6 +42,7 @@ describe('TUI', function() | {3:-- TERMINAL --} | ]]) + child_session = helpers.connect(child_server) end) after_each(function() |