Skip to content

Commit

Permalink
extension/test/runTest.ts: disable D-Bus comm for test execution
Browse files Browse the repository at this point in the history
This suppresses the "Failed to connect to the bus" error.

Change-Id: Ie193b92085906121ba337bcf4a3af4428c87b31e
  • Loading branch information
hyangah committed Oct 10, 2024
1 parent bc99bc2 commit a68b4d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions extension/test/runTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import * as path from 'path';
import { SilentReporter, runTests } from '@vscode/test-electron';

async function main() {
process.env['DBUS_SESSION_BUS_ADDRESS'] = '';

// We are in test mode.
process.env['VSCODE_GO_IN_TEST'] = '1';
if (process.argv.length > 2) {
Expand Down

0 comments on commit a68b4d0

Please sign in to comment.