mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
test(mksession_spec): only sleep on Windows (#18637)
This commit is contained in:
parent
341d0ec3b3
commit
95580f31b3
@ -5,6 +5,7 @@ local Screen = require('test.functional.ui.screen')
|
||||
local clear = helpers.clear
|
||||
local command = helpers.command
|
||||
local get_pathsep = helpers.get_pathsep
|
||||
local iswin = helpers.iswin
|
||||
local eq = helpers.eq
|
||||
local neq = helpers.neq
|
||||
local funcs = helpers.funcs
|
||||
@ -107,8 +108,10 @@ describe(':mksession', function()
|
||||
command('terminal')
|
||||
command('cd '..cwd_dir)
|
||||
command('mksession '..session_path)
|
||||
command('bd!')
|
||||
sleep(100) -- Make sure the process exits.
|
||||
command('bdelete!')
|
||||
if iswin() then
|
||||
sleep(100) -- Make sure all child processes have exited.
|
||||
end
|
||||
command('qall!')
|
||||
|
||||
-- Create a new test instance of Nvim.
|
||||
@ -117,12 +120,14 @@ describe(':mksession', function()
|
||||
|
||||
local expected_cwd = cwd_dir..'/'..tab_dir
|
||||
matches('^term://'..pesc(expected_cwd)..'//%d+:', funcs.expand('%'))
|
||||
command('bd!')
|
||||
sleep(100) -- Make sure the process exits.
|
||||
command('bdelete!')
|
||||
if iswin() then
|
||||
sleep(100) -- Make sure all child processes have exited.
|
||||
end
|
||||
end)
|
||||
|
||||
it('restores CWD for :terminal buffer at root directory #16988', function()
|
||||
if helpers.iswin() then
|
||||
if iswin() then
|
||||
pending('N/A for Windows')
|
||||
return
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user