@@ -24,6 +24,12 @@ const EXPERIMENTAL_DEBUG_ADAPTER = path.join(__dirname, '..', '..', 'client', 'd
24
24
const debugAdapterFileName = path . basename ( testAdapterFilePath ) ;
25
25
const debuggerType = debugAdapterFileName === 'Main.js' ? 'python' : 'pythonExperimental' ;
26
26
suite ( `Standard Debugging - Misc tests: ${ debuggerType } ` , ( ) => {
27
+ // Ignore errors raised
28
+ function continueOnError ( ex ) {
29
+ console . error ( `Error in running test 'Standard Debugging - Misc tests: ${ debuggerType } '` , ex ) ;
30
+ }
31
+ suiteSetup ( ( ) => process . addListener ( 'uncaughtException' , continueOnError ) ) ;
32
+ suiteTeardown ( ( ) => process . removeListener ( 'uncaughtException' , continueOnError ) ) ;
27
33
28
34
let debugClient : DebugClient ;
29
35
setup ( async function ( ) {
@@ -34,7 +40,7 @@ const EXPERIMENTAL_DEBUG_ADAPTER = path.join(__dirname, '..', '..', 'client', 'd
34
40
if ( debuggerType !== 'python' && IS_CI_SERVER ) {
35
41
return this . skip ( ) ;
36
42
}
37
- await new Promise ( resolve => setTimeout ( resolve , 1000 ) ) ;
43
+ await sleep ( 1000 ) ;
38
44
debugClient = new DebugClient ( 'node' , testAdapterFilePath , debuggerType ) ;
39
45
await debugClient . start ( ) ;
40
46
} ) ;
@@ -48,7 +54,6 @@ const EXPERIMENTAL_DEBUG_ADAPTER = path.join(__dirname, '..', '..', 'client', 'd
48
54
} catch ( ex ) { }
49
55
await sleep ( 1000 ) ;
50
56
} ) ;
51
-
52
57
function buildLauncArgs ( pythonFile : string , stopOnEntry : boolean = false ) : LaunchRequestArguments {
53
58
// Temporary, untill new version of PTVSD is bundled we cannot run tests.
54
59
// For now lets run test locally.
0 commit comments