ARTEMIS-3993 Fixing test when libaio is loaded

This commit is contained in:
clebert 2022-12-16 10:32:29 -05:00 committed by Clebert Suconic
parent 9816e1b999
commit 16046b368d
1 changed files with 6 additions and 1 deletions

View File

@ -37,6 +37,7 @@ import org.apache.activemq.artemis.core.config.ha.SharedStoreMasterPolicyConfigu
import org.apache.activemq.artemis.core.deployers.impl.FileConfigurationParser;
import org.apache.activemq.artemis.core.server.ActiveMQServer;
import org.apache.activemq.artemis.core.settings.impl.AddressSettings;
import org.apache.activemq.artemis.nativo.jlibaio.LibaioContext;
import org.apache.activemq.artemis.tests.util.ActiveMQTestBase;
import org.apache.activemq.artemis.utils.ClassloadingUtil;
import org.apache.activemq.artemis.utils.DefaultSensitiveStringCodec;
@ -543,8 +544,12 @@ public class FileConfigurationParserTest extends ActiveMQTestBase {
// check that suffixes were interpreted well
Assert.assertEquals(100 * 1024 * 1024, configuration.getGlobalMaxSize());
Assert.assertEquals(10 * 1024 * 1024, configuration.getJournalFileSize());
if (LibaioContext.isLoaded()) {
Assert.assertEquals(5 * 1024 * 1024, configuration.getJournalBufferSize_AIO());
} else {
Assert.assertEquals(5 * 1024 * 1024, configuration.getJournalBufferSize_NIO());
}
}
@Test
public void testRetentionJournalOptionsDays() throws Exception {