Test fixes

This commit is contained in:
Anuken
2026-03-19 11:05:54 -04:00
parent 71dd8587a6
commit f989f5609c
5 changed files with 5 additions and 0 deletions

View File

@@ -429,6 +429,7 @@ project(":tests"){
test{
//fork every test so mods don't interact with each other
forkEvery = 1
jvmArgs = ["-XX:+HeapDumpOnOutOfMemoryError"]
useJUnitPlatform()
workingDir = new File("../core/assets")
testLogging{

Binary file not shown.

Binary file not shown.

View File

@@ -72,6 +72,8 @@ public class SectorSubmissions{
registerSerpuloSector(103, "enwyz", "https://discord.com/channels/391020510269669376/1379926839559979030/1429203869514207255");
registerSerpuloSector(237, "Chocomint", "https://discord.com/channels/391020510269669376/1379926929636851812/1474447354982563840");
registerSerpuloSector(138, "Lilith", "https://discord.com/channels/391020510269669376/1379926873152164004/1470268689201889464");
registerSerpuloSector(150, "Jamespire", "https://discord.com/channels/391020510269669376/1379926876457537547/1484013941477609543");
registerSerpuloSector(247, "Locla^Glass", "https://discord.com/channels/391020510269669376/1379926976361533752/1431827990295220266");
/* UNUSED SECTORS:
registerHiddenSectors(serpulo,

View File

@@ -904,6 +904,8 @@ public class ApplicationTests{
Time.setDeltaProvider(() -> 1f);
logic.reset();
//pathfinder pollutes queue with garbage, causing OOM
Reflect.<TaskQueue>get(HeadlessApplication.class, Core.app, "runnables").clear();
state.rules.sector = zone.sector;
world.loadGenerator(zone.generator.map.width, zone.generator.map.height, tiles -> zone.generator.generate(tiles, new WorldParams()));
zone.rules.get(state.rules);