From 7e66df39e885e2af862d347205e2bbed139df296 Mon Sep 17 00:00:00 2001 From: crschnick Date: Mon, 4 Mar 2024 14:23:31 +0000 Subject: [PATCH] Fix tests --- .../java/io/xpipe/beacon/test/BeaconDaemonExtensionTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beacon/src/main/java/io/xpipe/beacon/test/BeaconDaemonExtensionTest.java b/beacon/src/main/java/io/xpipe/beacon/test/BeaconDaemonExtensionTest.java index 9fae1ee7a..ca06e6bf6 100644 --- a/beacon/src/main/java/io/xpipe/beacon/test/BeaconDaemonExtensionTest.java +++ b/beacon/src/main/java/io/xpipe/beacon/test/BeaconDaemonExtensionTest.java @@ -1,5 +1,6 @@ package io.xpipe.beacon.test; +import io.xpipe.core.process.OsType; import io.xpipe.core.util.JacksonMapper; import io.xpipe.core.util.XPipeDaemonMode; import org.junit.jupiter.api.AfterAll; @@ -10,7 +11,7 @@ public class BeaconDaemonExtensionTest { @BeforeAll public static void setup() throws Exception { JacksonMapper.initModularized(ModuleLayer.boot()); - BeaconDaemonController.start(XPipeDaemonMode.TRAY); + BeaconDaemonController.start(OsType.getLocal().equals(OsType.WINDOWS) ? XPipeDaemonMode.TRAY : XPipeDaemonMode.BACKGROUND); } @AfterAll