ARTEMIS-3993 Fix test
This commit is contained in:
parent
16046b368d
commit
51a3c6a351
|
@ -37,7 +37,6 @@ 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;
|
||||
|
@ -544,11 +543,9 @@ 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());
|
||||
}
|
||||
// one of the two will get the value
|
||||
Assert.assertTrue(5 * 1024 * 1024 == configuration.getJournalBufferSize_AIO() ||
|
||||
5 * 1024 * 1024 == configuration.getJournalBufferSize_NIO());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue