diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2025-02-11 07:19:46 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-11 07:19:46 -0800 |
commit | ac768996b295fe58256444a258911ec0fb9adc3f (patch) | |
tree | a53e0c75184a605785dd8c1ee16f3278edd4ad41 /test/functional/ex_cmds | |
parent | 891d2f4029259b2790b9aa3ca71ebca0ff3d7eba (diff) | |
download | rneovim-ac768996b295fe58256444a258911ec0fb9adc3f.tar.gz rneovim-ac768996b295fe58256444a258911ec0fb9adc3f.tar.bz2 rneovim-ac768996b295fe58256444a258911ec0fb9adc3f.zip |
refactor(tests): drop os_kill #32401
Also change job tests to use `nvim` instead of random programs like `ping`.
Diffstat (limited to 'test/functional/ex_cmds')
-rw-r--r-- | test/functional/ex_cmds/swapfile_preserve_recover_spec.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/functional/ex_cmds/swapfile_preserve_recover_spec.lua b/test/functional/ex_cmds/swapfile_preserve_recover_spec.lua index f84fc140d2..2974564f70 100644 --- a/test/functional/ex_cmds/swapfile_preserve_recover_spec.lua +++ b/test/functional/ex_cmds/swapfile_preserve_recover_spec.lua @@ -14,7 +14,6 @@ local ok = t.ok local rmdir = n.rmdir local new_pipename = n.new_pipename local pesc = vim.pesc -local os_kill = n.os_kill local set_session = n.set_session local async_meths = n.async_meths local expect_msg_seq = n.expect_msg_seq @@ -100,7 +99,7 @@ describe("preserve and (R)ecover with custom 'directory'", function() it('with :preserve and SIGKILL', function() local swappath1 = setup_swapname() command('preserve') - os_kill(eval('getpid()')) + eq(0, vim.uv.kill(eval('getpid()'), 'sigkill')) test_recover(swappath1) end) |