Skip to content

Commit

Permalink
Add withNano(0) to be S3 compatiable
Browse files Browse the repository at this point in the history
  • Loading branch information
sinhaashish committed May 27, 2020
1 parent 04a9374 commit b726bc0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion functional/FunctionalTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -3879,7 +3879,7 @@ public static void getObjectRetention_test1() throws Exception {
client.getObjectRetention(
GetObjectRetentionArgs.builder().bucket(bucketName).object(objectName).build());

if (!(config.retainUntilDate().equals(expectedConfig.retainUntilDate()))
if (!(config.retainUntilDate().withNano(0).equals(expectedConfig.retainUntilDate()))
|| (config.mode() != expectedConfig.mode())) {
throw new Exception(
"[FAILED] Expected: expected duration : "
Expand Down Expand Up @@ -3913,6 +3913,7 @@ public static void getObjectRetention_test1() throws Exception {

if (!(updatedConfig
.retainUntilDate()
.withNano(0)
.equals(expectedConfigWithShortenedPeriod.retainUntilDate()))
|| (updatedConfig.mode() != expectedConfigWithShortenedPeriod.mode())) {
throw new Exception(
Expand Down

0 comments on commit b726bc0

Please sign in to comment.