From 216c9598eeb8e0144ac37f6f5292751b64284f0b Mon Sep 17 00:00:00 2001 From: jamurty Date: Fri, 22 May 2009 01:14:31 +0000 Subject: [PATCH] Potential fix for test failures caused by locale differences git-svn-id: http://jclouds.googlecode.com/svn/trunk@829 3d8758e0-26b5-11de-8745-db77d3ebf521 --- .../perftest/src/test/java/com/amazon/s3/DateServiceTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aws/s3/perftest/src/test/java/com/amazon/s3/DateServiceTest.java b/aws/s3/perftest/src/test/java/com/amazon/s3/DateServiceTest.java index 3ef7b964c2..88dff1e146 100644 --- a/aws/s3/perftest/src/test/java/com/amazon/s3/DateServiceTest.java +++ b/aws/s3/perftest/src/test/java/com/amazon/s3/DateServiceTest.java @@ -24,6 +24,7 @@ package com.amazon.s3; import java.util.Date; +import java.util.Locale; import java.util.concurrent.Callable; import java.util.concurrent.CompletionService; import java.util.concurrent.ExecutionException; @@ -87,7 +88,7 @@ public class DateServiceTest extends PerformanceTest { // Joda items for performance comparisons private DateTimeFormatter headerDateFormat = DateTimeFormat - .forPattern("EEE, dd MMM yyyy HH:mm:ss 'GMT'"); + .forPattern("EEE, dd MMM yyyy HH:mm:ss 'GMT'").withLocale(Locale.US); private DateTime jodaParseIso8601(String toParse) { return new DateTime(toParse);