mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
test(termxx_spec): fix TermClose bdelete test flakiness (#22463)
Problem: If shell-test finishes before the next RPC call, TermClose has already been triggered, so the test fails. Solution: Add INTERACT argument so that shell-test keeps running.
This commit is contained in:
parent
999fe94688
commit
aa840ab566
@ -22,6 +22,8 @@ describe('autocmd TermClose', function()
|
||||
|
||||
|
||||
local function test_termclose_delete_own_buf()
|
||||
-- The terminal process needs to keep running so that TermClose isn't triggered immediately.
|
||||
nvim('set_option', 'shell', string.format('"%s" INTERACT', testprg('shell-test')))
|
||||
command('autocmd TermClose * bdelete!')
|
||||
command('terminal')
|
||||
matches('^TermClose Autocommands for "%*": Vim%(bdelete%):E937: Attempt to delete a buffer that is in use: term://',
|
||||
|
Loading…
Reference in New Issue
Block a user