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

util/timeutil: fix timeutil/time_test.go on Windows #22758

Merged
merged 1 commit into from
Feb 8, 2021
Merged

util/timeutil: fix timeutil/time_test.go on Windows #22758

merged 1 commit into from
Feb 8, 2021

Conversation

skyline75489
Copy link
Contributor

@skyline75489 skyline75489 commented Feb 7, 2021

What problem does this PR solve?

Problem Summary: The test case fails on Windows because of pure Unix paths.

What is changed and how it works?

What's Changed: Switching to filepath.Join(os.TempDir(), "path").

How it Works:

Related changes

  • PR to update pingcap/docs/pingcap/docs-cn:
  • Need to cherry-pick to the release branch

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Side effects

  • Performance regression
    • Consumes more CPU
    • Consumes more MEM
  • Breaking backward compatibility

Release note

  • No release note

@ti-srebot ti-srebot added the first-time-contributor Indicates that the PR was contributed by an external member and is a first-time contributor. label Feb 7, 2021
@CLAassistant
Copy link

CLAassistant commented Feb 7, 2021

CLA assistant check
All committers have signed the CLA.

@sre-bot
Copy link
Contributor

sre-bot commented Feb 7, 2021

Copy link
Member

@bb7133 bb7133 left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-srebot ti-srebot added the status/LGT1 Indicates that a PR has LGTM 1. label Feb 7, 2021
@morgo
Copy link
Contributor

morgo commented Feb 8, 2021

/run-check_release_note

@morgo
Copy link
Contributor

morgo commented Feb 8, 2021

LGTM

@ti-srebot ti-srebot removed the status/LGT1 Indicates that a PR has LGTM 1. label Feb 8, 2021
@ti-srebot ti-srebot added the status/LGT2 Indicates that a PR has LGTM 2. label Feb 8, 2021
@morgo
Copy link
Contributor

morgo commented Feb 8, 2021

/merge

@ti-srebot ti-srebot added the status/can-merge Indicates a PR has been approved by a committer. label Feb 8, 2021
@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot ti-srebot merged commit 38aaad2 into pingcap:master Feb 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
first-time-contributor Indicates that the PR was contributed by an external member and is a first-time 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.

6 participants