diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2015-01-29 11:04:03 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-01-29 11:52:56 -0300 |
commit | bdba32ffd9cac722358424921b2e924ed876a902 (patch) | |
tree | 8c1895d76add374e5d13efa0ae60f26c691488c7 | |
parent | c5df2f38ff2d1ceca0e9eedc966390a8c757cb97 (diff) | |
download | rneovim-bdba32ffd9cac722358424921b2e924ed876a902.tar.gz rneovim-bdba32ffd9cac722358424921b2e924ed876a902.tar.bz2 rneovim-bdba32ffd9cac722358424921b2e924ed876a902.zip |
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.
-rw-r--r-- | test/functional/job/job_spec.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/job/job_spec.lua b/test/functional/job/job_spec.lua index 07ca0c0058..5304c9e9d3 100644 --- a/test/functional/job/job_spec.lua +++ b/test/functional/job/job_spec.lua @@ -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') |