cloudwatch free interval is 5m not 1m

This commit is contained in:
Adrian Cole 2012-02-26 16:55:18 +02:00
parent dadd4f6515
commit 4d919ce14e
1 changed files with 2 additions and 2 deletions

View File

@ -159,8 +159,8 @@ public class AWSEC2ComputeServiceLiveTest extends EC2ComputeServiceLiveTest {
ListenableFuture<ExecResponse> future = client.submitScriptOnNode(first.getId(), Statements ListenableFuture<ExecResponse> future = client.submitScriptOnNode(first.getId(), Statements
.exec("while true; do true; done"), runAsRoot(false).nameTask("cpuSpinner")); .exec("while true; do true; done"), runAsRoot(false).nameTask("cpuSpinner"));
// monitoring granularity must be at least 60 seconds, so lets make sure we have data. // monitoring granularity for free tier is 5 minutes, so lets make sure we have data.
Thread.sleep(TimeUnit.MILLISECONDS.convert(61, TimeUnit.SECONDS)); Thread.sleep(TimeUnit.MILLISECONDS.convert(5, TimeUnit.MINUTES));
// stop the spinner // stop the spinner
future.cancel(true); future.cancel(true);