diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2024-02-12 05:50:39 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-12 05:50:39 -0800 |
commit | 0185152802d4a84258a9a04c1d86a7e27d37d721 (patch) | |
tree | 3880293029a66a8a009fff2f3489849c247c36db /test/functional/lua/vim_spec.lua | |
parent | 210ec3b7a94c64263703087163a957567ddf4224 (diff) | |
download | rneovim-0185152802d4a84258a9a04c1d86a7e27d37d721.tar.gz rneovim-0185152802d4a84258a9a04c1d86a7e27d37d721.tar.bz2 rneovim-0185152802d4a84258a9a04c1d86a7e27d37d721.zip |
refactor(tests): get channel id via nvim_get_chan_info #27441
Minor "best practices" nudge.
Diffstat (limited to 'test/functional/lua/vim_spec.lua')
-rw-r--r-- | test/functional/lua/vim_spec.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/lua/vim_spec.lua b/test/functional/lua/vim_spec.lua index 10a2437ba2..c7490756d4 100644 --- a/test/functional/lua/vim_spec.lua +++ b/test/functional/lua/vim_spec.lua @@ -3363,7 +3363,7 @@ describe('lua stdlib', function() describe('returns -2 when interrupted', function() before_each(function() - local channel = api.nvim_get_api_info()[1] + local channel = api.nvim_get_chan_info(0).id api.nvim_set_var('channel', channel) end) |