test/integration/goDebug: modify teardown+cleanup test
dlv dap started to handle disconnect requests while debugees are running.
Completely skip sending a disconnect request before disposing the debug
adapter during testing.
Updates golang/vscode-go#1481
Change-Id: I5f4dad864d3f28d726a64bab8dd45534c8e0d6d7
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/318789
Reviewed-by: Suzy Mueller <suzmue@golang.org>
Trust: Hyang-Ah Hana Kim <hyangah@gmail.com>
diff --git a/test/integration/goDebug.test.ts b/test/integration/goDebug.test.ts
index 73b9b5f..3d6a5ba 100644
--- a/test/integration/goDebug.test.ts
+++ b/test/integration/goDebug.test.ts
@@ -1606,9 +1606,8 @@
assert.fail(`debug output ${OUTPUT} wasn't built: ${e}`);
}
- // It's possible dlv-dap doesn't respond. So, don't wait.
- dc.disconnectRequest({ restart: false });
- await sleep(10);
+ // Skip the proper disconnect sequence started with a disconnect request.
+
dlvDapAdapter.dispose(1);
dc = undefined;
await sleep(100); // allow dlv to respond and finish cleanup.