aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2015-01-29 11:04:03 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-01-29 11:52:56 -0300
commitbdba32ffd9cac722358424921b2e924ed876a902 (patch)
tree8c1895d76add374e5d13efa0ae60f26c691488c7
parentc5df2f38ff2d1ceca0e9eedc966390a8c757cb97 (diff)
downloadrneovim-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.lua3
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')