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:
parent
8e286be6ee
commit
6cfc313234
3 changed files with 15 additions and 288 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue