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/eval/interrupt_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/eval/interrupt_spec.lua')
-rw-r--r-- | test/functional/eval/interrupt_spec.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/eval/interrupt_spec.lua b/test/functional/eval/interrupt_spec.lua index 7f4ca95317..05b1f4ff57 100644 --- a/test/functional/eval/interrupt_spec.lua +++ b/test/functional/eval/interrupt_spec.lua @@ -4,7 +4,7 @@ local command = helpers.command local meths = helpers.meths local clear = helpers.clear local sleep = helpers.sleep -local wait = helpers.wait +local poke_eventloop = helpers.poke_eventloop local feed = helpers.feed local eq = helpers.eq @@ -39,7 +39,7 @@ describe('List support code', function() feed(':let t_rt = reltime()<CR>:let t_bl = copy(bl)<CR>') sleep(min_dur / 16 * 1000) feed('<C-c>') - wait() + poke_eventloop() command('let t_dur = reltimestr(reltime(t_rt))') local t_dur = tonumber(meths.get_var('t_dur')) if t_dur >= dur / 8 then @@ -50,7 +50,7 @@ describe('List support code', function() feed(':let t_rt = reltime()<CR>:let t_j = join(bl)<CR>') sleep(min_dur / 16 * 1000) feed('<C-c>') - wait() + poke_eventloop() command('let t_dur = reltimestr(reltime(t_rt))') local t_dur = tonumber(meths.get_var('t_dur')) print(('t_dur: %g'):format(t_dur)) |