diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2020-10-19 20:17:51 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2020-10-19 21:48:06 +0200 |
commit | 07cc231142f5810c70818007dcd720271b1c0248 (patch) | |
tree | 6527f2b82c1a279b1bb985a4fde9651f96a0d352 /test/functional/legacy/close_count_spec.lua | |
parent | 288f7f8558c331fadcc72e9c7391fff08d42ba36 (diff) | |
download | rneovim-07cc231142f5810c70818007dcd720271b1c0248.tar.gz rneovim-07cc231142f5810c70818007dcd720271b1c0248.tar.bz2 rneovim-07cc231142f5810c70818007dcd720271b1c0248.zip |
A Mudholland Dr. Recast
The commit summary maybe does not make sense, but calling a function
that does not wait on anything `wait()` makes even less sense.
Diffstat (limited to 'test/functional/legacy/close_count_spec.lua')
-rw-r--r-- | test/functional/legacy/close_count_spec.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/legacy/close_count_spec.lua b/test/functional/legacy/close_count_spec.lua index 9b932e2ef0..60ae155fbf 100644 --- a/test/functional/legacy/close_count_spec.lua +++ b/test/functional/legacy/close_count_spec.lua @@ -3,7 +3,7 @@ local helpers = require('test.functional.helpers')(after_each) local eq = helpers.eq -local wait = helpers.wait +local poke_eventloop = helpers.poke_eventloop local eval = helpers.eval local feed = helpers.feed local clear = helpers.clear @@ -110,23 +110,23 @@ describe('close_count', function() command('for i in range(5)|new|endfor') command('4wincmd w') feed('<C-W>c<cr>') - wait() + poke_eventloop() command('let buffers = []') command('windo call add(buffers, bufnr("%"))') eq({25, 24, 23, 21, 1}, eval('buffers')) feed('1<C-W>c<cr>') - wait() + poke_eventloop() command('let buffers = []') command('windo call add(buffers, bufnr("%"))') eq({24, 23, 21, 1}, eval('buffers')) feed('9<C-W>c<cr>') - wait() + poke_eventloop() command('let buffers = []') command('windo call add(buffers, bufnr("%"))') eq({24, 23, 21}, eval('buffers')) command('1wincmd w') feed('2<C-W>c<cr>') - wait() + poke_eventloop() command('let buffers = []') command('windo call add(buffers, bufnr("%"))') eq({24, 21}, eval('buffers')) |