Skip to content

Commit c49f9f2

Browse files
committed
fix(e2e): skip registerUpdateHandlers in E2E mode (AppImageUpdater D-Bus hang on Linux CI)
1 parent a79262b commit c49f9f2

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

app/src/main/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,12 @@ app.whenReady().then(() => {
229229
if (isE2EMode) log.info('[e2e] hook handlers ok');
230230
registerWatchHandlers(getMainWindow);
231231
if (isE2EMode) log.info('[e2e] watch handlers ok');
232-
registerUpdateHandlers();
232+
// Skip update handler registration in E2E mode. On Linux CI, electron-updater
233+
// initialises AppImageUpdater which accesses D-Bus / libsecret and hangs for
234+
// ~20 s when no real session bus is available. Auto-update is irrelevant in tests.
235+
if (!isE2EMode) {
236+
registerUpdateHandlers();
237+
}
233238
if (isE2EMode) log.info('[e2e] handlers registered');
234239

235240
mainWindow = createWindow();

0 commit comments

Comments
 (0)