test: Mark unreliable test as pending in job_spec.lua

`job_send` is non-blocking and can potentially fail due to the following
`job_stop` call.  Since we can't reliably verify that the "exit" event is only
sent after the "stdout" event, mark the test as pending and fix after we can
get a notification about `job_send` status.
This commit is contained in:
Thiago de Arruda
2015-01-29 11:04:03 -03:00
parent c5df2f38ff
commit bdba32ffd9

View File

@@ -97,7 +97,8 @@ describe('jobs', function()
nvim('command', "call jobstart('xxx', 'cat', ['-'])")
end)
it('will only emit the "exit" event after "stdout" and "stderr"', function()
-- FIXME need to wait until jobsend succeeds before calling jobstop
pending('will only emit the "exit" event after "stdout" and "stderr"', function()
nvim('command', notify_job())
nvim('command', "let j = jobstart('xxx', 'cat', ['-'])")
local jobid = nvim('eval', 'j')