summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2022-12-09 14:05:49 +0100
committerOskar Nyberg <oskar@mullvad.net>2022-12-14 10:39:00 +0100
commit322bf2f04992c115e2f311b51d3fad13e905538f (patch)
tree6edd9602e74dfa0f0c05db2965467ad594250f7e
parent8b9c8e08b9ad168b4f86e0833097fbab0cc3e246 (diff)
downloadmullvadvpn-322bf2f04992c115e2f311b51d3fad13e905538f.tar.xz
mullvadvpn-322bf2f04992c115e2f311b51d3fad13e905538f.zip
Fix timeout on Linux
-rw-r--r--gui/src/main/index.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts
index 06796a7be1..7503c24e01 100644
--- a/gui/src/main/index.ts
+++ b/gui/src/main/index.ts
@@ -422,7 +422,9 @@ class ApplicationMain
this.userInterface.showWindow();
}
- if (process.platform === 'linux') {
+ // For some reason playwright hangs on Linux if we call `window.setIcon`. Since the icon isn't
+ // needed for the tests this block has been disabled when running e2e tests.
+ if (process.platform === 'linux' && process.env.CI !== 'e2e') {
try {
const icon = await findIconPath('mullvad-vpn', ['png']);
if (icon) {