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

Assert OpenReader from file does not panic after closure #212

Merged
merged 1 commit into from
Aug 20, 2021

Conversation

masih
Copy link
Member

@masih masih commented Aug 19, 2021

Write a test that asserts reader instantiated from OpenReader do not
panic and instead error gracefully if underlying IO is closed.

Fixes #211

@masih masih requested a review from raulk August 19, 2021 13:22
v2/reader_test.go Outdated Show resolved Hide resolved
Write a test that asserts reader instantiated from `OpenReader` do not
panic and instead error gracefully if underlying IO is closed.

Relates to #211
@raulk
Copy link
Member

raulk commented Aug 19, 2021

Thanks @masih for the quick turnaround. Closing this as the issue is related to NewReader with a supplied mmapped region.

@raulk raulk closed this Aug 19, 2021
@raulk raulk reopened this Aug 19, 2021
@raulk
Copy link
Member

raulk commented Aug 19, 2021

Oops, I wanted to close the issue, not the PR that adds the tests :D

@masih
Copy link
Member Author

masih commented Aug 19, 2021

Oops, I wanted to close the issue, not the PR that adds the tests :D

@raulk As punishment can I get a review on this PR please 🙏

@masih masih requested a review from willscott August 20, 2021 08:38
@masih masih merged commit ed281f9 into master Aug 20, 2021
@masih masih deleted the masih/test-open-reader branch August 20, 2021 11:30
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.

make carv2 SectionReaders gracefully reject operations after closure
4 participants