mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
refactor(tests): get channel id via nvim_get_chan_info #27441
Minor "best practices" nudge.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user