From cffeeb0eab903d27a9c90fb861054227b59b1aea Mon Sep 17 00:00:00 2001 From: Andrew Donald Kennedy Date: Wed, 9 May 2012 16:21:04 +0100 Subject: [PATCH] Not everyone lives in US-CA --- .../jclouds/cloudwatch/features/MetricClientExpectTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apis/cloudwatch/src/test/java/org/jclouds/cloudwatch/features/MetricClientExpectTest.java b/apis/cloudwatch/src/test/java/org/jclouds/cloudwatch/features/MetricClientExpectTest.java index 0701846d48..18d3301dae 100644 --- a/apis/cloudwatch/src/test/java/org/jclouds/cloudwatch/features/MetricClientExpectTest.java +++ b/apis/cloudwatch/src/test/java/org/jclouds/cloudwatch/features/MetricClientExpectTest.java @@ -22,6 +22,7 @@ import static org.testng.Assert.assertEquals; import java.net.URI; import java.util.Date; +import java.util.TimeZone; import org.jclouds.cloudwatch.CloudWatchClient; import org.jclouds.cloudwatch.domain.Dimension; @@ -45,6 +46,11 @@ import com.google.common.collect.ImmutableMultimap; */ @Test(groups = "unit", testName = "MetricClientExpectTest") public class MetricClientExpectTest extends BaseCloudWatchClientExpectTest { + + public MetricClientExpectTest() { + TimeZone.setDefault(TimeZone.getTimeZone("America/Los_Angeles")); + } + HttpRequest listMetrics = HttpRequest.builder() .method("POST") .endpoint(URI.create("https://monitoring.us-east-1.amazonaws.com/"))