aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-08-05 03:17:53 +0200
committerJustin M. Keyes <justinkz@gmail.com>2019-08-05 03:52:17 +0200
commitc516586dc35b4ab8c691a5f234b90581582ccc85 (patch)
tree5728773ddbcc3cccb081ae3be7fa1d3016b9e973
parent6871445dfe80939df81517870f0b29a2b40dd9d9 (diff)
downloadrneovim-c516586dc35b4ab8c691a5f234b90581582ccc85.tar.gz
rneovim-c516586dc35b4ab8c691a5f234b90581582ccc85.tar.bz2
rneovim-c516586dc35b4ab8c691a5f234b90581582ccc85.zip
tests: fix flaky "TermClose … fast-exiting terminal job stops"
This extra retry() was removed (at my suggestion) in 5b94a2977a22, but it is probably needed: jobwait(…, timeout=0) could return while channel_process_exit_cb() is still queued (so TermClose event didn't fire yet). 20:46:21,288 INFO - not ok 547 - TermClose event triggers when fast-exiting terminal job stops 20:46:21,288 INFO - # test/functional/autocmd/termclose_spec.lua @ 20 20:46:21,288 INFO - # Failure message: ./test/functional/helpers.lua:98: Vim:E121: Undefined variable: g:test_termclose 20:46:21,288 INFO - # stack traceback: 20:46:21,288 INFO - # ./test/functional/helpers.lua:98: in function 'eval' 20:46:21,288 INFO - # test/functional/autocmd/termclose_spec.lua:25: in function <test/functional/autocmd/termclose_spec.lua:20>
-rw-r--r--test/functional/autocmd/termclose_spec.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/autocmd/termclose_spec.lua b/test/functional/autocmd/termclose_spec.lua
index 26f2b5da1b..50bcf1af5a 100644
--- a/test/functional/autocmd/termclose_spec.lua
+++ b/test/functional/autocmd/termclose_spec.lua
@@ -22,7 +22,7 @@ describe('TermClose event', function()
command('terminal')
-- shell-test exits immediately.
retry(nil, nil, function() neq(-1, eval('jobwait([&channel], 0)[0]')) end)
- eq(23, eval('g:test_termclose'))
+ retry(nil, nil, function() eq(23, eval('g:test_termclose')) end)
end)
it('triggers when long-running terminal job gets stopped', function()