mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
fix(s3): truncate LastModified timestamps to second precision (#24)
This commit is contained in:
1 parent
38f7c5c2eb
commit
ad31e7a7b7
3 files changed
+11
-2
No files matched your search
@@ -81,6 +81,13 @@ class S3ServiceTest {
|
||||
assertEquals(2, buckets.size());
|
||||
}
|
||||
|
||||
@Test
|
||||
void putObjectLastModifiedHasSecondPrecision() {
|
||||
s3Service.createBucket("test-bucket");
|
||||
S3Object obj = s3Service.putObject("test-bucket", "file.txt", "data".getBytes(), null, null);
|
||||
assertEquals(0, obj.getLastModified().getNano());
|
||||
}
|
||||
|
||||
@Test
|
||||
void putAndGetObject() {
|
||||
s3Service.createBucket("test-bucket", "us-east-1");
|
||||
|
||||
Reference in new issue
Block a user