Skip to content

Commit 5809bf9

Browse files
committed
fix(e2e): skip startUpdateCheck in E2E mode to prevent D-Bus hang on Linux
1 parent c49f9f2 commit 5809bf9

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

app/src/main/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,11 @@ app.whenReady().then(() => {
241241
if (isE2EMode) log.info('[e2e] window created');
242242

243243
mainWindow.once('ready-to-show', () => {
244-
startUpdateCheck();
244+
// Skip update check in E2E mode — on Linux, autoUpdater.checkForUpdates()
245+
// initialises AppImageUpdater which accesses D-Bus and hangs in CI.
246+
if (!isE2EMode) {
247+
startUpdateCheck();
248+
}
245249
// Flush any paths that arrived before the window was ready.
246250
for (const p of pendingOpenPaths) {
247251
mainWindow?.webContents.send(IPC.EVENT_OPEN_WORKSPACE, p);

0 commit comments

Comments
 (0)