Skip to content

Commit

Permalink
[bug] S3 gateway protocol reports time with 1-second precision
Browse files Browse the repository at this point in the history
Bump timeSlippage accordingly.
  • Loading branch information
arielshaqed committed Oct 28, 2024
1 parent 762e418 commit fc7c766
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions esti/multipart_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fc7c766

Please sign in to comment.