From af90765a9291c7cea8e419efe88078fb495b7c8e Mon Sep 17 00:00:00 2001 From: Brian Neumann-Fopiano Date: Thu, 22 Oct 2026 04:49:45 -0400 Subject: [PATCH] Restored burst parallelism in test - Burst parallelism test restores the shared pool so later concurrency tests see the default size --- .../world/pregen/PregenPerformanceProfileTest.java | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/core/src/test/java/art/arcane/iris/world/pregen/PregenPerformanceProfileTest.java b/core/src/test/java/art/arcane/iris/world/pregen/PregenPerformanceProfileTest.java index a2cff4331..78ab4b2d1 100644 --- a/core/src/test/java/art/arcane/iris/world/pregen/PregenPerformanceProfileTest.java +++ b/core/src/test/java/art/arcane/iris/world/pregen/PregenPerformanceProfileTest.java @@ -94,10 +94,15 @@ public class PregenPerformanceProfileTest { @Test public void raisingBurstParallelismOnlyGrowsThePool() { int before = MultiBurst.burst.parallelism(); - assertFalse(MultiBurst.burst.raiseParallelism(before)); - assertTrue(MultiBurst.burst.raiseParallelism(before + 1)); - assertEquals(before + 1, MultiBurst.burst.parallelism()); - assertFalse(MultiBurst.burst.raiseParallelism(before)); + try { + assertFalse(MultiBurst.burst.raiseParallelism(before)); + assertTrue(MultiBurst.burst.raiseParallelism(before + 1)); + assertEquals(before + 1, MultiBurst.burst.parallelism()); + assertFalse(MultiBurst.burst.raiseParallelism(before)); + } finally { + MultiBurst.burst.restoreParallelism(); + } + assertEquals(before, MultiBurst.burst.parallelism()); } @Test