Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefile: gotest, froze TZ for unixtime test #12226

Merged
merged 3 commits into from
Sep 17, 2019
Merged

Conversation

ekalinin
Copy link
Contributor

What problem does this PR solve?

Without this fix i could not run tests:

$ make gotest
...
----------------------------------------------------------------------
FAIL: simple_rewriter_test.go:22: testEvaluatorSuite.TestSimpleRewriter

simple_rewriter_test.go:172:
    c.Assert(num, Equals, int64(1209571200))
... obtained int64 = 1209585600
... expected int64 = 1209571200
...

It looks like the root of this fail is that my time zone is different from time zone where tests usually run.

What is changed and how it works?

Time zone was hard coded before tests.

Check List

Tests

  • Unit test
  • No code

@sre-bot sre-bot added the contribution This PR is from a community contributor. label Sep 17, 2019
@CLAassistant
Copy link

CLAassistant commented Sep 17, 2019

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zz-jason zz-jason added the status/LGT1 Indicates that a PR has LGTM 1. label Sep 17, 2019
@tiancaiamao
Copy link
Contributor

LGTM

@tiancaiamao tiancaiamao added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Sep 17, 2019
@tiancaiamao tiancaiamao added the status/can-merge Indicates a PR has been approved by a committer. label Sep 17, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Sep 17, 2019

/run-all-tests

@sre-bot sre-bot merged commit 81577bf into pingcap:master Sep 17, 2019
@codecov
Copy link

codecov bot commented Sep 17, 2019

Codecov Report

Merging #12226 into master will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             master     #12226   +/-   ##
===========================================
  Coverage   81.1375%   81.1375%           
===========================================
  Files           454        454           
  Lines         98524      98524           
===========================================
  Hits          79940      79940           
  Misses        12829      12829           
  Partials       5755       5755

@ekalinin ekalinin deleted the patch-1 branch September 17, 2019 11:07
@shenli
Copy link
Member

shenli commented Sep 17, 2019

@ekalinin Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution This PR is from a community contributor. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants