Skip to content

Commit 97b8aff

Browse files
committed
Increase the ram for the Forge installer
Disable the quilt test with wrong java version Fix the NeoForge test
1 parent d6521fd commit 97b8aff

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/main/java/fr/flowarg/flowupdater/versions/AbstractForgeVersion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ protected ModLoaderLauncherEnvironment makeCommand(@NotNull Path patchedInstalle
188188
{
189189
final List<String> command = new ArrayList<>();
190190
command.add(this.javaPath);
191-
command.add("-Xmx256M");
191+
command.add("-Xmx512M");
192192
command.add("-jar");
193193
command.add(patchedInstaller.toAbsolutePath().toString());
194194
command.add("--installClient");

src/test/java/fr/flowarg/flowupdater/IntegrationTests.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,12 @@ public void testWithFabric() throws Exception
161161
@Test
162162
public void testWithQuilt() throws Exception
163163
{
164+
if(Integer.parseInt(System.getProperty("java.version").split("\\.")[0]) < 17)
165+
{
166+
System.out.println("Skipping test with Quilt because Java version is < 17");
167+
return;
168+
}
169+
164170
boolean error = false;
165171
try
166172
{
@@ -232,7 +238,7 @@ public void testWithNeoForgeUsage() throws Exception
232238
.withName(vanilla)
233239
.build();
234240

235-
final AbstractForgeVersion forgeVersion = new ForgeVersionBuilder(ForgeVersionType.NEW)
241+
final AbstractForgeVersion forgeVersion = new ForgeVersionBuilder(ForgeVersionType.NEO_FORGE)
236242
.withForgeVersion(vanillaForge)
237243
.build();
238244

0 commit comments

Comments
 (0)