mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
test: nodejs_spec: allow more time for nodejs init
This commit is contained in:
@@ -35,7 +35,7 @@ describe('nodejs host', function()
|
|||||||
nvim.command('call jobstop(g:job_id)');
|
nvim.command('call jobstop(g:job_id)');
|
||||||
]])
|
]])
|
||||||
command('let g:job_id = jobstart(["node", "'..fname..'"])')
|
command('let g:job_id = jobstart(["node", "'..fname..'"])')
|
||||||
retry(nil, 1000, function() eq('hello', eval('g:job_out')) end)
|
retry(nil, 2000, function() eq('hello', eval('g:job_out')) end)
|
||||||
end)
|
end)
|
||||||
it('plugin works', function()
|
it('plugin works', function()
|
||||||
local fname = 'Xtest-nodejs-hello-plugin.js'
|
local fname = 'Xtest-nodejs-hello-plugin.js'
|
||||||
@@ -56,6 +56,6 @@ describe('nodejs host', function()
|
|||||||
nvim.command('call jobstop(g:job_id)');
|
nvim.command('call jobstop(g:job_id)');
|
||||||
]])
|
]])
|
||||||
command('let g:job_id = jobstart(["node", "'..fname..'"])')
|
command('let g:job_id = jobstart(["node", "'..fname..'"])')
|
||||||
retry(nil, 1000, function() eq('hello-plugin', eval('g:job_out')) end)
|
retry(nil, 2000, function() eq('hello-plugin', eval('g:job_out')) end)
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user