From fc7c76624b8708c804192d38ef16b5af63483ec3 Mon Sep 17 00:00:00 2001 From: "Ariel Shaqed (Scolnicov)" Date: Mon, 28 Oct 2024 11:17:28 +0200 Subject: [PATCH] [bug] S3 gateway protocol reports time with 1-second precision Bump timeSlippage accordingly. --- esti/multipart_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/esti/multipart_test.go b/esti/multipart_test.go index fbcba0c7c05..bfb5d105577 100644 --- a/esti/multipart_test.go +++ b/esti/multipart_test.go @@ -26,8 +26,9 @@ const ( func TestMultipartUpload(t *testing.T) { // timeSlippage is a bound on the time difference between the local server and the S3 // server. It is used to verify that the "Last-Modified" time is actually close to the - // CreateMultipartUpload time. - const timeSlippage = time.Millisecond * 150 + // CreateMultipartUpload time. BUT S3 provides this time only at a 1-second resolution. + // So a 1-second difference is possible. + const timeSlippage = time.Second ctx, logger, repo := setupTest(t) defer tearDownTest(repo)