More test fixes

This commit is contained in:
crschnick 2024-03-04 14:42:52 +00:00
parent 7e66df39e8
commit 3d30613a54
2 changed files with 3 additions and 2 deletions

View file

@ -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});
}
}

View file

@ -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"
}
}
}