Merge pull request #620 from grkvlt/timezone-fix

Not everyone lives in US-CA
This commit is contained in:
Adrian Cole 2012-05-09 08:40:54 -07:00
commit 81f46b49a7
1 changed files with 6 additions and 0 deletions

View File

@ -22,6 +22,7 @@ import static org.testng.Assert.assertEquals;
import java.net.URI; import java.net.URI;
import java.util.Date; import java.util.Date;
import java.util.TimeZone;
import org.jclouds.cloudwatch.CloudWatchClient; import org.jclouds.cloudwatch.CloudWatchClient;
import org.jclouds.cloudwatch.domain.Dimension; import org.jclouds.cloudwatch.domain.Dimension;
@ -45,6 +46,11 @@ import com.google.common.collect.ImmutableMultimap;
*/ */
@Test(groups = "unit", testName = "MetricClientExpectTest") @Test(groups = "unit", testName = "MetricClientExpectTest")
public class MetricClientExpectTest extends BaseCloudWatchClientExpectTest { public class MetricClientExpectTest extends BaseCloudWatchClientExpectTest {
public MetricClientExpectTest() {
TimeZone.setDefault(TimeZone.getTimeZone("America/Los_Angeles"));
}
HttpRequest listMetrics = HttpRequest.builder() HttpRequest listMetrics = HttpRequest.builder()
.method("POST") .method("POST")
.endpoint(URI.create("https://monitoring.us-east-1.amazonaws.com/")) .endpoint(URI.create("https://monitoring.us-east-1.amazonaws.com/"))