Skip to content

fix test on windows - #482

Merged
dhui merged 2 commits into
golang-migrate:masterfrom
johejo:fix_test_on_windows
Nov 25, 2020
Merged

dhui merged 2 commits into
golang-migrate:masterfrom
johejo:fix_test_on_windows

Conversation

@johejo

@johejo johejo commented Nov 24, 2020

Copy link
Copy Markdown
Contributor

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

coveralls commented Nov 24, 2020 •

Copy link
Copy Markdown

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

@dhui dhui left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the fix!

Comment thread source/testing/testing.go Outdated
}
if up != nil {
if err := up.Close(); err != nil {
t.Log(err)

Copy link
Copy Markdown
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