Replies: 5 comments
-
These tests run before every release, so we'd have noticed if they were failing (for the record: they do run in hosts with the timezone set to UTC). Were you trying to run them locally and seeing failures? |
Beta Was this translation helpful? Give feedback.
-
No, I didn't run the tests, but I was doing tests with similar code in separate application and I noticed it's wrong.
That explains why the tests are passing, right? |
Beta Was this translation helpful? Give feedback.
-
I wouldn't call them wrong, they were written expecting to be run in UTC... If you find an issue with the |
Beta Was this translation helpful? Give feedback.
-
No problem. I just wanted to clarify what I found. Thank you. |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I wonder if tests at GEneratePreSigendUrlTests.cs are wrong?
In most (if not all) tests, the
Expiration
parameter is set as UTC, for example:However, it's used to set the
Expires
property of theGetPresignedUrlRequest
:Which is expected to be in local time.
I wonder if the tests passed so far because you are running in a machine which time zone is UTC?
Beta Was this translation helpful? Give feedback.
All reactions