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

fix test on windows #482

Merged
merged 2 commits into from
Nov 25, 2020
Merged

fix test on windows #482

merged 2 commits into from
Nov 25, 2020

Conversation

johejo
Copy link
Contributor

@johejo johejo commented Nov 24, 2020

On Windows, the test fails because os.Remove cannot remove unclosed and still-handled files.

On Windows, the test fails because os.Remove cannot remove unclosed and still-handled files.
@coveralls
Copy link

coveralls commented Nov 24, 2020

Pull Request Test Coverage Report for Build 939

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 55.205%

Totals Coverage Status
Change from base Build 935: 0.0%
Covered Lines: 3044
Relevant Lines: 5514

💛 - Coveralls

Copy link
Member

@dhui dhui left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@@ -129,6 +129,11 @@ func TestReadUp(t *testing.T, d source.Driver) {
t.Errorf("expected up to be nil, got %v, in %v", up, i)
}
}
if up != nil {
if err := up.Close(); err != nil {
t.Log(err)
Copy link
Member

Choose a reason for hiding this comment

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

Might as well use t.Error()

@dhui dhui merged commit a53e6fc into golang-migrate:master Nov 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants