Permalink
Browse files

These tests need to wait longer to account for preemption tasks

  • Loading branch information...
1 parent d48ff79 commit db32503f84dc3dd144f52033c08d53bce08e9b7e @timf timf committed Jun 13, 2011
@@ -1056,7 +1056,7 @@ public void multipleSIRequestsOnly() throws Exception {
// Spot price: MINIMUM_PRICE
logger.debug("Waiting 2 seconds for resources to be pre-empted.");
- Thread.sleep(2000);
+ Thread.sleep(2000);
//Check backfill request state
backfillRequestsByCaller = rm.getBackfillRequestsByCaller(superuser);
@@ -1305,8 +1305,8 @@ public void mixedSIandWSrequests() throws Exception {
// Requested SI VMs (alive requests): 7 (1 from lowReq1 was closed)
// Spot price: lowBid (previousPrice+1)
- logger.debug("Waiting 2 seconds for resources to be pre-empted.");
- Thread.sleep(2000);
+ logger.debug("Waiting 4 seconds for resources to be pre-empted.");
+ Thread.sleep(4000);
//Check available SI VMs
assertEquals(6, getAvailableResources());
@@ -1347,8 +1347,8 @@ public void mixedSIandWSrequests() throws Exception {
// Requested SI VMs (alive requests): 6 (2 from lowReq1 were closed)
// Spot price: lowBid (previousPrice+1)
- logger.debug("Waiting 2 seconds for SI VMs to be pre-empted.");
- Thread.sleep(2000);
+ logger.debug("Waiting 4 seconds for SI VMs to be pre-empted.");
+ Thread.sleep(4000);
//Check available SI VMs
assertEquals(4, getAvailableResources());

0 comments on commit db32503

Please sign in to comment.