Chromium Code Reviews
DescriptionFix mocked time in 'common/auth/localauth' tests.
It incorrectly set local time as test time. TestRecentTimeLocal represents
different instances in time for different local timezones (but same local clock
readings).
The test later compares Unix representation of this time to a predefined value.
Unix time is always counted from UTC zone, so different moments in time have
different representations. The test hardcoded Unix representation of PST variant
of TestRecentTimeLocal, and so tests passed only in PST zone.
R=tandrii@chromium.org
BUG=747013
Review-Url: https://codereview.chromium.org/2988263002
Committed: https://github.com/luci/luci-go/commit/ad913aefc7240bcad0a7d52d31345b2e181b456a
Patch Set 1 #Patch Set 2 : doh #
Messages
Total messages: 15 (11 generated)
|
||||||||||||||||||||||||||||