Skip to content

Test that do_attempt_write_data does not infinitely loop #556

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 2 commits into from
Mar 27, 2020

Conversation

valentinewallace
Copy link
Contributor

when all the channel messages can't fit into the buffer.

Adds a test for PR #550.

This test may still need work because it doesn't fail with the previous code per se, just infinitely loops. But, it technically would've caught the problem.

@TheBlueMatt
Copy link
Collaborator

I think infinitely looping in a test is a perfectly reasonable failure mode, especially given the code in question infinite looped in production :)

Copy link
Collaborator

@TheBlueMatt TheBlueMatt left a comment

Choose a reason for hiding this comment

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

Pretty much looks good. Would be nice to get a test for the messages actually being received, though.

@valentinewallace valentinewallace marked this pull request as ready for review March 23, 2020 21:47
@valentinewallace valentinewallace force-pushed the add-PR550-test branch 5 times, most recently from 6d88fe7 to 1d77598 Compare March 27, 2020 16:41
@TheBlueMatt
Copy link
Collaborator

Travis got screwed up. Can you git commit --amend (just to change the timestamp and commitid) and then push so that travis runs?

@valentinewallace valentinewallace force-pushed the add-PR550-test branch 3 times, most recently from b5503f9 to 24aa9fc Compare March 27, 2020 19:41
when all the channel messages can't fit into the buffer.

Adds a test for PR lightningdevkit#550.
@TheBlueMatt
Copy link
Collaborator

Travis is broken.

@TheBlueMatt TheBlueMatt merged commit b8876a9 into lightningdevkit:master Mar 27, 2020
@valentinewallace valentinewallace deleted the add-PR550-test branch March 27, 2020 20:27
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