From 3d30613a5466d3aa76f104b4de6ba689b2eca09e Mon Sep 17 00:00:00 2001 From: crschnick Date: Mon, 4 Mar 2024 14:42:52 +0000 Subject: [PATCH] More test fixes --- app/src/main/java/io/xpipe/app/test/LocalExtensionTest.java | 4 +++- gradle/gradle_scripts/local_junit_suite.gradle | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/xpipe/app/test/LocalExtensionTest.java b/app/src/main/java/io/xpipe/app/test/LocalExtensionTest.java index 52227d7df..b066f2e28 100644 --- a/app/src/main/java/io/xpipe/app/test/LocalExtensionTest.java +++ b/app/src/main/java/io/xpipe/app/test/LocalExtensionTest.java @@ -1,6 +1,7 @@ package io.xpipe.app.test; import io.xpipe.app.core.mode.OperationMode; +import io.xpipe.core.process.OsType; import lombok.SneakyThrows; import org.junit.jupiter.api.BeforeAll; @@ -13,6 +14,7 @@ public class LocalExtensionTest extends ExtensionTest { return; } - OperationMode.init(new String[0]); + var mode = OsType.getLocal().equals(OsType.WINDOWS) ? "tray" : "background"; + OperationMode.init(new String[] {"--mode", mode}); } } diff --git a/gradle/gradle_scripts/local_junit_suite.gradle b/gradle/gradle_scripts/local_junit_suite.gradle index 25dba4227..9b73f2b88 100644 --- a/gradle/gradle_scripts/local_junit_suite.gradle +++ b/gradle/gradle_scripts/local_junit_suite.gradle @@ -28,7 +28,6 @@ testing { systemProperty "io.xpipe.app.dataDir", "$projectDir/local/" systemProperty "io.xpipe.app.logLevel", "trace" systemProperty "io.xpipe.app.writeSysOut", "true" - systemProperty "io.xpipe.app.mode", "tray" } } }