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

tests: Fix CLI unit tests #1607

Merged
merged 8 commits into from
Feb 23, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ func (f *testFile) Sync() error {
}

func (f *testFile) Close() error {
err := f.file.Close()
if f.CloseError != nil {
return f.CloseError
}
return f.file.Close()
return err
}
Comment on lines 43 to 49
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fix one more test on Windows, always close the underlying file.

Loading