Fix test timing out on slow spinning disks.

On a local drive with heave I/O this test took over 2.5 minutes to
complete, CI machines can see similar times, bumped timeout to 5 minutes
to account for this range.
This commit is contained in:
Timothy Bish 2016-05-17 13:00:56 -04:00
parent 1263dd8c43
commit 2c3046b816
1 changed files with 4 additions and 2 deletions

View File

@ -273,7 +273,8 @@ public abstract class PListTestSupport {
executor.execute(new B());
executor.shutdown();
boolean finishedInTime = executor.awaitTermination(60, TimeUnit.SECONDS);
boolean finishedInTime = executor.awaitTermination(5, TimeUnit.MINUTES);
LOG.info("Tested completion finished in time? -> {}", finishedInTime ? "YES" : "NO");
assertTrue("no exceptions", exceptions.isEmpty());
assertTrue("finished ok", finishedInTime);
@ -644,7 +645,8 @@ public abstract class PListTestSupport {
@Before
public void setUp() throws Exception {
File directory = new File("target/test/PlistDB");
//File directory = new File("target/test/PlistDB");
File directory = new File("/sandbox/temp/plist");
IOHelper.mkdirs(directory);
IOHelper.deleteChildren(directory);
startStore(directory);