NO-JIRA Limitting load on PotentialOOMELoggingTest

This test was generating too much data just to log an error message.
The same error message would happen with just 100 queues.
This commit is contained in:
Clebert Suconic 2023-03-28 04:38:15 -04:00
parent 6de9e30c46
commit 41b2ec7efb

View File

@ -48,7 +48,7 @@ public class PotentialOOMELoggingTest extends ActiveMQTestBase {
@Test
public void testBlockLogging() throws Exception {
ActiveMQServer server = createServer(false, createDefaultInVMConfig());
for (int i = 0; i < 10000; i++) {
for (int i = 0; i < 100; i++) {
server.getConfiguration().addQueueConfiguration(new QueueConfiguration(UUID.randomUUID().toString()));
}
server.getConfiguration().setGlobalMaxSize(-1);