Skip to content

Commit 5771e55

Browse files
committed
increase timeouts
1 parent ed2421b commit 5771e55

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/test/debugger/misc.test.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { noop } from '../../client/common/core.utils';
1414
import { IS_WINDOWS } from '../../client/common/platform/constants';
1515
import { FileSystem } from '../../client/common/platform/fileSystem';
1616
import { PlatformService } from '../../client/common/platform/platformService';
17+
import { StopWatch } from '../../client/common/stopWatch';
1718
import { DebugOptions, LaunchRequestArguments } from '../../client/debugger/Common/Contracts';
1819
import { sleep } from '../common';
1920
import { IS_MULTI_ROOT_TEST, TEST_DEBUGGER } from '../initialize';
@@ -447,34 +448,35 @@ let testCounter = 0;
447448
await debugClient.assertStoppedLocation('exception', pauseLocation);
448449
});
449450
test('Test multi-threaded debugging', async () => {
450-
console.log('step1');
451+
const stopWatch = new StopWatch();
452+
console.log(`step1 ${stopWatch.elapsedTime}`);
451453
await Promise.all([
452454
debugClient.configurationSequence(),
453455
debugClient.launch(buildLauncArgs('multiThread.py', false)),
454456
debugClient.waitForEvent('initialized')
455457
]);
456458
debugClient.addListener('output', output => {
457-
console.log(JSON.stringify(output));
459+
console.log(`stepx ${stopWatch.elapsedTime}, ${JSON.stringify(output)}`);
458460
});
459-
console.log('step2');
461+
console.log(`step2 ${stopWatch.elapsedTime}`);
460462
const pythonFile = path.join(debugFilesPath, 'multiThread.py');
461463
const breakpointLocation = { path: pythonFile, column: 1, line: 15 };
462464
await debugClient.setBreakpointsRequest({
463465
lines: [breakpointLocation.line],
464466
breakpoints: [{ line: breakpointLocation.line, column: breakpointLocation.column }],
465467
source: { path: breakpointLocation.path }
466468
});
467-
console.log('step3');
469+
console.log(`step3 ${stopWatch.elapsedTime}`);
468470
// hit breakpoint.
469471
await debugClient.assertStoppedLocation('breakpoint', breakpointLocation);
470-
console.log('step4');
472+
console.log(`step4 ${stopWatch.elapsedTime}`);
471473
const threads = await debugClient.threadsRequest();
472-
console.log('step5');
474+
console.log(`step5 ${stopWatch.elapsedTime}`);
473475
expect(threads.body.threads).of.lengthOf(2, 'incorrect number of threads');
474476
for (const thread of threads.body.threads) {
475477
expect(thread.id).to.be.lessThan(MAX_SIGNED_INT32 + 1, 'ThreadId is not an integer');
476478
}
477-
console.log('step6');
479+
console.log(`step6 ${stopWatch.elapsedTime}`);
478480
});
479481
test('Test stack frames', async () => {
480482
await Promise.all([

0 commit comments

Comments
 (0)