mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
test(autocmd/termxx_spec): fix TextChangedT test flakiness (#31296)
Problem: The E937 error appears for too short in TextChangedT test. Solution: Only feed an Enter key after seeing the error.
This commit is contained in:
parent
ff75f345ab
commit
3597633075
@ -213,9 +213,11 @@ describe('autocmd TextChangedT', function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
it('cannot delete terminal buffer', function()
|
it('cannot delete terminal buffer', function()
|
||||||
command([[autocmd TextChangedT * call nvim_input('<CR>') | bwipe!]])
|
command('autocmd TextChangedT * bwipe!')
|
||||||
tt.feed_data('a')
|
tt.feed_data('a')
|
||||||
screen:expect({ any = 'E937: ' })
|
screen:expect({ any = 'E937: ' })
|
||||||
|
feed('<CR>')
|
||||||
|
command('autocmd! TextChangedT')
|
||||||
matches(
|
matches(
|
||||||
'^E937: Attempt to delete a buffer that is in use: term://',
|
'^E937: Attempt to delete a buffer that is in use: term://',
|
||||||
api.nvim_get_vvar('errmsg')
|
api.nvim_get_vvar('errmsg')
|
||||||
|
Loading…
Reference in New Issue
Block a user