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

Expose openHandles #81

Merged
merged 1 commit into from
Oct 21, 2024
Merged

Expose openHandles #81

merged 1 commit into from
Oct 21, 2024

Conversation

jasagredo
Copy link
Contributor

Exposing this function is useful to check not only that there are open handles but also what are those handles filepaths.

@jasagredo jasagredo requested a review from a team as a code owner October 17, 2024 14:01
Copy link
Collaborator

@jorisdral jorisdral left a comment

Choose a reason for hiding this comment

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

Fine with me, but openHandles returns OpenHandleState, which is an opaque type. Are you only printing the result of openHandles?

fs-sim/src/System/FS/Sim/MockFS.hs Outdated Show resolved Hide resolved
fs-sim/CHANGELOG.md Outdated Show resolved Hide resolved
@jasagredo
Copy link
Contributor Author

Indeed I'm just doing:

counterexample (show (Mock.openHandles fs)) $ ...

@jasagredo jasagredo added this pull request to the merge queue Oct 21, 2024
Merged via the queue into main with commit 2d85d65 Oct 21, 2024
22 checks passed
@jasagredo jasagredo deleted the js/openhandles branch October 21, 2024 08:52
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.

2 participants