Skip to content

Commit 151e9d9

Browse files
committed
extension/test/runTest.ts: disable D-Bus comm for test execution
This suppresses the "Failed to connect to the bus" error. Change-Id: Ie193b92085906121ba337bcf4a3af4428c87b31e Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/619716 kokoro-CI: kokoro <[email protected]> Commit-Queue: Hyang-Ah Hana Kim <[email protected]> Reviewed-by: Hongxiang Jiang <[email protected]>
1 parent dc68451 commit 151e9d9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

extension/test/runTest.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import * as path from 'path';
44
import { SilentReporter, runTests } from '@vscode/test-electron';
55

66
async function main() {
7+
// Disable chatty electron's DBUS errors by unsetting this env var.
8+
// DBUS is not required. https://github.com/microsoft/vscode-test/issues/127
9+
process.env['DBUS_SESSION_BUS_ADDRESS'] = '';
710
// Use the local toolchain by default
811
// instead of getting affected by the extension/go.mod go or toolchain directives.
912
process.env['GOTOOLCHAIN'] = 'local';

0 commit comments

Comments
 (0)