test: nodejs_spec: allow more time for nodejs init

This commit is contained in:
Justin M. Keyes
2018-04-18 09:42:56 +02:00
parent 7a13611ba2
commit 1dc497398e

View File

@@ -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)