From 4d919ce14e27da3dd2b4f896ac460bef90015cd1 Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Sun, 26 Feb 2012 16:55:18 +0200 Subject: [PATCH] cloudwatch free interval is 5m not 1m --- .../jclouds/aws/ec2/compute/AWSEC2ComputeServiceLiveTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/providers/aws-ec2/src/test/java/org/jclouds/aws/ec2/compute/AWSEC2ComputeServiceLiveTest.java b/providers/aws-ec2/src/test/java/org/jclouds/aws/ec2/compute/AWSEC2ComputeServiceLiveTest.java index e4de90fe9a..20a35d7f6a 100644 --- a/providers/aws-ec2/src/test/java/org/jclouds/aws/ec2/compute/AWSEC2ComputeServiceLiveTest.java +++ b/providers/aws-ec2/src/test/java/org/jclouds/aws/ec2/compute/AWSEC2ComputeServiceLiveTest.java @@ -159,8 +159,8 @@ public class AWSEC2ComputeServiceLiveTest extends EC2ComputeServiceLiveTest { ListenableFuture future = client.submitScriptOnNode(first.getId(), Statements .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. - Thread.sleep(TimeUnit.MILLISECONDS.convert(61, TimeUnit.SECONDS)); + // monitoring granularity for free tier is 5 minutes, so lets make sure we have data. + Thread.sleep(TimeUnit.MILLISECONDS.convert(5, TimeUnit.MINUTES)); // stop the spinner future.cancel(true);