Skip to content

Commit f03294f

Browse files
committed
silence errors
1 parent d90846c commit f03294f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/test/debugger/misc.test.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ const EXPERIMENTAL_DEBUG_ADAPTER = path.join(__dirname, '..', '..', 'client', 'd
2424
const debugAdapterFileName = path.basename(testAdapterFilePath);
2525
const debuggerType = debugAdapterFileName === 'Main.js' ? 'python' : 'pythonExperimental';
2626
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));
2733

2834
let debugClient: DebugClient;
2935
setup(async function () {
@@ -34,7 +40,7 @@ const EXPERIMENTAL_DEBUG_ADAPTER = path.join(__dirname, '..', '..', 'client', 'd
3440
if (debuggerType !== 'python' && IS_CI_SERVER) {
3541
return this.skip();
3642
}
37-
await new Promise(resolve => setTimeout(resolve, 1000));
43+
await sleep(1000);
3844
debugClient = new DebugClient('node', testAdapterFilePath, debuggerType);
3945
await debugClient.start();
4046
});
@@ -48,7 +54,6 @@ const EXPERIMENTAL_DEBUG_ADAPTER = path.join(__dirname, '..', '..', 'client', 'd
4854
} catch (ex) { }
4955
await sleep(1000);
5056
});
51-
5257
function buildLauncArgs(pythonFile: string, stopOnEntry: boolean = false): LaunchRequestArguments {
5358
// Temporary, untill new version of PTVSD is bundled we cannot run tests.
5459
// For now lets run test locally.

0 commit comments

Comments
 (0)