diff --git a/build.gradle.kts b/build.gradle.kts index d3c530db0b..8125f5c25f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -38,8 +38,6 @@ subprojects { exceptionFormat = TestExceptionFormat.FULL events(TestLogEvent.STANDARD_OUT) } - minHeapSize = "2g" - maxHeapSize = "4g" } repositories { diff --git a/patches/server/Test-changes.patch b/patches/server/Test-changes.patch index bb549025b2..a431c6e386 100644 --- a/patches/server/Test-changes.patch +++ b/patches/server/Test-changes.patch @@ -38,6 +38,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 +import org.bukkit.plugin.PluginManager; +import org.bukkit.plugin.SimplePluginManager; +import org.bukkit.support.AbstractTestingBase; ++import org.mockito.Mockito; + +import static org.mockito.Mockito.any; +import static org.mockito.Mockito.mock; @@ -52,7 +53,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + return; + } + -+ final Server dummyServer = mock(Server.class); ++ final Server dummyServer = mock(Server.class, Mockito.withSettings().stubOnly()); + + final Logger logger = Logger.getLogger(DummyServer.class.getCanonicalName()); + when(dummyServer.getLogger()).thenReturn(logger);