From 989fd97192894c0fc764f37b90a7f2f800146192 Mon Sep 17 00:00:00 2001 From: Matt Farina Date: Mon, 6 Aug 2012 15:22:26 -0400 Subject: [PATCH] Increased the timeout. The previous number of iterations were not long enough to complete the tests. --- test/Tests/DBaaSTestCase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Tests/DBaaSTestCase.php b/test/Tests/DBaaSTestCase.php index 9429c9d..4812c47 100644 --- a/test/Tests/DBaaSTestCase.php +++ b/test/Tests/DBaaSTestCase.php @@ -59,7 +59,7 @@ abstract class DBaaSTestCase extends \HPCloud\Tests\TestCase { } } - public function waitUntilRunning($inst, &$details, $verbose = FALSE, $max = 15, $sleep = 5) { + public function waitUntilRunning($inst, &$details, $verbose = FALSE, $max = 30, $sleep = 5) { if ($details->isRunning()) { return TRUE; } @@ -77,7 +77,7 @@ abstract class DBaaSTestCase extends \HPCloud\Tests\TestCase { } } - throw \Exception(sprintf("Instance did not start after %d attempts (%d seconds)", $max, $max * $sleep)); + throw new \Exception(sprintf("Instance did not start after %d attempts (%d seconds)", $max, $max * $sleep)); } }