May make the tests less flaky
This commit is contained in:
parent
4d484868f3
commit
7813f06dd1
5 changed files with 10 additions and 2 deletions
|
|
@ -218,6 +218,7 @@ class DebugSession( object ):
|
|||
if self._connection:
|
||||
self._connection.OnData( data )
|
||||
|
||||
|
||||
def OnServerStderr( self, data ):
|
||||
self._logger.info( "Server stderr: %s", data )
|
||||
if self._outputView:
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ class OutputView( object ):
|
|||
if 'E516' not in e:
|
||||
raise
|
||||
|
||||
self._buffers.clear()
|
||||
self._buffers = {}
|
||||
|
||||
def _ShowOutput( self, category ):
|
||||
utils.JumpToWindow( self._window )
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@ endfunction
|
|||
function Test_StopAtEntry()
|
||||
lcd testdata/cpp/simple
|
||||
edit simple.cpp
|
||||
call setpos( '.', [ 0, 15, 1 ] )
|
||||
call setpos( '.', [ 0, 1, 1 ] )
|
||||
|
||||
" Test stopAtEntry behaviour
|
||||
call feedkeys( "\<F5>", 'xt' )
|
||||
|
|
@ -214,6 +214,9 @@ function Test_DisableBreakpointWhileDebugging()
|
|||
call WaitForAssert( {->
|
||||
\ assert_true ( pyxeval( '_vimspector_session._connection is None' ) )
|
||||
\ } )
|
||||
call WaitForAssert( {->
|
||||
\ assert_true( pyxeval( '_vimspector_session._uiTab is None' ) )
|
||||
\ } )
|
||||
|
||||
" Check breakpoint is now a user breakpoint
|
||||
call setpos( '.', [ bufnr( 'simple.cpp' ), 1, 1 ] )
|
||||
|
|
|
|||
|
|
@ -24,6 +24,9 @@ function! vimspector#test#setup#Reset() abort
|
|||
call WaitForAssert( {->
|
||||
\ assert_true( pyxeval( '_vimspector_session._connection is None' ) )
|
||||
\ } )
|
||||
call WaitForAssert( {->
|
||||
\ assert_true( pyxeval( '_vimspector_session._uiTab is None' ) )
|
||||
\ } )
|
||||
|
||||
call vimspector#test#signs#AssertSignGroupEmpty( 'VimspectorCode' )
|
||||
call vimspector#ClearBreakpoints()
|
||||
|
|
|
|||
|
|
@ -211,6 +211,7 @@ func AfterTheTest()
|
|||
let logfile = s:testid_filesafe . '.vimspector.log'
|
||||
call writefile( log, logfile, 's' )
|
||||
call add( s:messages, 'Wrote log for failed test: ' . logfile )
|
||||
call extend( s:messages, log )
|
||||
endif
|
||||
endfunc
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue