tweaking PeriodicDiskUsageLimitTest

Increasing the size of the files written during testing to try
and reduce the change of a test failure
This commit is contained in:
Christopher L. Shannon (cshannon) 2015-11-11 13:11:21 +00:00
parent 5d353e241b
commit d328864410
1 changed files with 8 additions and 8 deletions

View File

@ -112,8 +112,8 @@ public class PeriodicDiskUsageLimitTest {
final long originalDisk = broker.getSystemUsage().getStoreUsage().getLimit();
final long originalTmp = broker.getSystemUsage().getTempUsage().getLimit();
//write a 2 meg file to the file system
writeTestFile(2 * 1024 * 1024);
//write a 5 meg file to the file system
writeTestFile(5 * 1024 * 1024);
//Assert that the usage limits have been decreased because some free space was used
//up by a file
@ -152,8 +152,8 @@ public class PeriodicDiskUsageLimitTest {
final long originalDisk = broker.getSystemUsage().getStoreUsage().getLimit();
final long originalTmp = broker.getSystemUsage().getTempUsage().getLimit();
//write a 2 meg file to the file system
writeTestFile(2 * 1024 * 1024);
//write a 5 meg file to the file system
writeTestFile(5 * 1024 * 1024);
//Assert that the usage limits have been decreased because some free space was used
//up by a file
@ -227,8 +227,8 @@ public class PeriodicDiskUsageLimitTest {
long originalDisk = broker.getSystemUsage().getStoreUsage().getLimit();
long originalTmp = broker.getSystemUsage().getTempUsage().getLimit();
//write a 2 meg file to the file system
writeTestFile(2 * 1024 * 1024);
//write a 5 meg file to the file system
writeTestFile(5 * 1024 * 1024);
Thread.sleep(3000);
//assert that the usage limits have not changed because a task should not have run
@ -283,8 +283,8 @@ public class PeriodicDiskUsageLimitTest {
long originalDisk = broker.getSystemUsage().getStoreUsage().getLimit();
long originalTmp = broker.getSystemUsage().getTempUsage().getLimit();
//write a 2 meg file to the file system
writeTestFile(2 * 1024 * 1024);
//write a 5 meg file to the file system
writeTestFile(5 * 1024 * 1024);
Thread.sleep(5000);
//Assert that the usage limits have not changed because writing a 2 meg file