fix ci failure when less than 4% disk space

This commit is contained in:
gtully 2016-05-06 12:10:08 +01:00
parent 5096463b00
commit 9a35c3731b
1 changed files with 2 additions and 0 deletions

View File

@ -63,6 +63,7 @@ public class PeriodicDiskUsageLimitTest {
@Before @Before
public void setUpBroker() throws Exception { public void setUpBroker() throws Exception {
broker = new BrokerService(); broker = new BrokerService();
broker.setUseJmx(false);
broker.setPersistent(true); broker.setPersistent(true);
testfile = dataFileDir.newFile(); testfile = dataFileDir.newFile();
broker.setDataDirectoryFile(dataFileDir.getRoot()); broker.setDataDirectoryFile(dataFileDir.getRoot());
@ -251,6 +252,7 @@ public class PeriodicDiskUsageLimitTest {
assertEquals(originalDisk, broker.getSystemUsage().getStoreUsage().getLimit()); assertEquals(originalDisk, broker.getSystemUsage().getStoreUsage().getLimit());
assertEquals(originalTmp, broker.getSystemUsage().getTempUsage().getLimit()); assertEquals(originalTmp, broker.getSystemUsage().getTempUsage().getLimit());
} }
LOG.info("Not running b/c there is less that 4% disk space, freePrecent:" + freePercent);
} }
protected void assertRampDown() throws Exception { protected void assertRampDown() throws Exception {