mirror of https://github.com/apache/druid.git
On systems with only once processor this test fails.
This commit is contained in:
parent
3dc2974894
commit
76fabcfdb2
|
@ -42,7 +42,11 @@ public class DruidProcessingConfigTest
|
|||
|
||||
Assert.assertEquals(1024 * 1024 * 1024, config.intermediateComputeSizeBytes());
|
||||
Assert.assertEquals(Integer.MAX_VALUE, config.poolCacheMaxCount());
|
||||
Assert.assertTrue(config.getNumThreads() < Runtime.getRuntime().availableProcessors());
|
||||
if (Runtime.getRuntime().availableProcessors() == 1) {
|
||||
Assert.assertTrue(config.getNumThreads() == 1);
|
||||
} else {
|
||||
Assert.assertTrue(config.getNumThreads() < Runtime.getRuntime().availableProcessors());
|
||||
}
|
||||
Assert.assertEquals(0, config.columnCacheSizeBytes());
|
||||
Assert.assertFalse(config.isFifo());
|
||||
|
||||
|
|
Loading…
Reference in New Issue