Do a better job of tidying up on test failure; note: We can still receive data callbacks after _OnExit, so just ignore that data

This commit is contained in:
Ben Jackson 2020-07-10 22:49:30 +01:00
commit 6cfc313234
3 changed files with 15 additions and 288 deletions

View file

@ -20,11 +20,8 @@ set cpoptions&vim
" }}}
function! s:_OnServerData( channel, data ) abort
if py3eval( '_vimspector_session is None' )
call ch_log( 'Unexpected stdout data received on channel '
\ . a:channel
\ . 'after reset: '
\ . a:data )
if !exists( 's:job' )
call ch_log( 'Get data after process exit' )
return
endif
@ -32,11 +29,8 @@ function! s:_OnServerData( channel, data ) abort
endfunction
function! s:_OnServerError( channel, data ) abort
if py3eval( '_vimspector_session is None' )
call ch_log( 'Unexpected stderr data received on channel '
\ . a:channel
\ . 'after reset: '
\ . a:data )
if !exists( 's:job' )
call ch_log( 'Get data after process exit' )
return
endif