Skip to content

Add additional test coverage of NetworkGraph counters #3388

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

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

TheBlueMatt
Copy link
Collaborator

This would have caught the bug fixed in 0c0cb6f in our tests.

Suggested by @valentinewallace.

This would have caught the bug fixed in 0c0cb6f
in our tests.

Suggested by @valentinewallace.
@@ -2089,6 +2089,10 @@ where
};
}

core::mem::drop(nodes);
Copy link
Contributor

Choose a reason for hiding this comment

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

Mind adding a comment here that will explain our future-selves what this does?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

What's not clear here? If you remove this many tests instantly fail with recursive lock errors :)

Copy link
Contributor

Choose a reason for hiding this comment

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

Well, it's pretty clear in the context of this PR, but in a month for now it might not be as obvious why we manually drop here, etc. Would be great to just add a brief comment.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Why else would you mem::drop a lock? I'm not really a fan of adding comments if I don't see why someone would get confused...

Copy link
Contributor

Choose a reason for hiding this comment

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

Alright, doesn't matter too much, going ahead and landing this

@tnull tnull merged commit c35adff into lightningdevkit:main Nov 7, 2024
17 of 18 checks passed
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