Removed unnecessary helper function.

This commit is contained in:
Technosophos
2012-05-30 11:35:47 -05:00
parent a1bdb7ca11
commit cdd3813f65

View File

@@ -86,27 +86,6 @@ class DBaaSSnapshot extends DBaaSTestCase {
return $details; return $details;
} }
protected function waitUntilSnapshotReady($snap, &$details, $verbose = FALSE, $max = 15, $sleep = 5) {
if ($details->status() == 'running') {
return TRUE;
}
for ($i = 0; $i < $max; ++$i) {
if ($verbose) fwrite(STDOUT, '⌛');
fprintf(STDOUT, "Status: %s\n", $details->status());
sleep($sleep);
$list= $snap->listSnapshots($details->instanceId());
$details = $list[0];
if ($details->status() == 'running') {
return TRUE;
}
}
throw \Exception(sprintf("Instance did not start after %d attempts (%d seconds)", $max, $max * $sleep));
}
/** /**
* @depends testCreate * @depends testCreate
*/ */