Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Issue 2988263002: Fix mocked time in 'common/auth/localauth' tests. (Closed)

Created:
3 years, 4 months ago by Vadim Sh.
Modified:
3 years, 4 months ago
Reviewers:
tandrii(chromium)
CC:
chromium-reviews, infra-reviews+luci-go_chromium.org, maruel+w_chromium.org, tandrii+luci-go_chromium.org
Target Ref:
refs/heads/master
Project:
luci-go
Visibility:
Public.

Description

Fix 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -5 lines) Patch
M common/auth/localauth/ctx_test.go View 2 chunks +2 lines, -2 lines 0 comments Download
M common/auth/localauth/server_test.go View 1 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (11 generated)
Vadim Sh.
3 years, 4 months ago (2017-08-01 23:39:06 UTC) #1
tandrii(chromium)
makes sense, LGTM. Thanks!
3 years, 4 months ago (2017-08-02 09:37:04 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2988263002/20001
3 years, 4 months ago (2017-08-02 09:37:17 UTC) #12
commit-bot: I haz the power
3 years, 4 months ago (2017-08-02 09:41:43 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://github.com/luci/luci-go/commit/ad913aefc7240bcad0a7d52d31345b2e181b456a

Powered by Google App Engine
This is Rietveld 408576698