fixed s3 test

This commit is contained in:
Adrian Cole 2011-03-12 16:02:51 -08:00
parent b81156a1f3
commit b0f37625ec
1 changed files with 3 additions and 2 deletions

View File

@ -64,8 +64,9 @@ public class CopyObjectOptionsTest {
@BeforeMethod
void setUp() {
goodMeta = ImmutableMap.of(USER_METADATA_PREFIX + "adrian", "foo");
now = new Date();
nowExpected = new SimpleDateFormatDateService().rfc822DateFormat(now);
Date date = new Date();
nowExpected = new SimpleDateFormatDateService().rfc822DateFormat(date);
now = new SimpleDateFormatDateService().rfc822DateParse(nowExpected);
etag = "mama";
}