Skip to content

Commit 0cdccf1

Browse files
committed
test: increase timeout for debug adapter tests
Increase the timeout for the debug adapter tests as delve may take longer to launch. This fixes the long tests on windows. This also switches the debug adapter tests to use the pre-webpack version of the debug process. Change-Id: I9180b3b49439e0f0ab59af337cd192d385c2635a Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/261080 Trust: Suzy Mueller <suzmue@golang.org> Trust: Hyang-Ah Hana Kim <hyangah@gmail.com> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
1 parent 6a2a004 commit 0cdccf1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/integration/goDebug.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,10 +275,10 @@ suite('RemoteSourcesAndPackages Tests', () => {
275275
// Test suite adapted from:
276276
// https://github.com/microsoft/vscode-mock-debug/blob/master/src/tests/adapter.test.ts
277277
suite('Go Debug Adapter', function () {
278-
this.timeout(10000);
278+
this.timeout(50000);
279279

280280
const debugConfigProvider = new GoDebugConfigurationProvider();
281-
const DEBUG_ADAPTER = path.join('.', 'dist', 'debugAdapter.js');
281+
const DEBUG_ADAPTER = path.join('.', 'out', 'src', 'debugAdapter', 'goDebug.js');
282282

283283
const PROJECT_ROOT = path.normalize(path.join(__dirname, '..', '..', '..'));
284284
const DATA_ROOT = path.join(PROJECT_ROOT, 'test', 'fixtures');
@@ -287,6 +287,10 @@ suite('Go Debug Adapter', function () {
287287

288288
setup( () => {
289289
dc = new DebugClient('node', path.join(PROJECT_ROOT, DEBUG_ADAPTER), 'go');
290+
291+
// Launching delve may take longer than the default timeout of 5000.
292+
dc.defaultTimeout = 20000;
293+
290294
// To connect to a running debug server for debugging the tests, specify PORT.
291295
return dc.start();
292296
});

0 commit comments

Comments
 (0)