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

lnwire,wtwire: use require package for fuzz tests #7709

Merged
merged 3 commits into from
May 23, 2023

Conversation

morehouse
Copy link
Collaborator

Simplify code by using the require package instead of t.Fatal.

This is the follow-up PR promised on #7649 (comment). @ellemouton

Tested on my local seed corpora and with a few CPU hours of fuzz time for arbitrary fuzz targets.

@morehouse morehouse changed the title lnwire,wtclient: use require package for fuzz tests lnwire,wtwire: use require package for fuzz tests May 19, 2023
@ellemouton ellemouton self-requested a review May 20, 2023 11:09
Copy link
Collaborator

@guggero guggero left a comment

Choose a reason for hiding this comment

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

Just a few nits, otherwise LGTM 🎉

lnwire/fuzz_test.go Outdated Show resolved Hide resolved
lnwire/fuzz_test.go Outdated Show resolved Hide resolved
lnwire/fuzz_test.go Show resolved Hide resolved
Copy link
Collaborator

@ellemouton ellemouton left a comment

Choose a reason for hiding this comment

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

Looking good! left a simplification suggestion

also - pls remember to add an entry to the release notes :)

lnwire/fuzz_test.go Outdated Show resolved Hide resolved
lnwire/fuzz_test.go Outdated Show resolved Hide resolved
Comment on lines 362 to 364

require.Equal(t, first.ChainHash, second.ChainHash)
require.Equal(t, first.PendingChannelID,
Copy link
Collaborator

Choose a reason for hiding this comment

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

same here as above

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

morehouse added a commit to morehouse/lnd that referenced this pull request May 22, 2023
morehouse added a commit to morehouse/lnd that referenced this pull request May 22, 2023
Copy link
Collaborator

@ellemouton ellemouton left a comment

Choose a reason for hiding this comment

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

Thanks for the updates! looking good :) can you pls squash the fixups?

morehouse added a commit to morehouse/lnd that referenced this pull request May 22, 2023
@morehouse
Copy link
Collaborator Author

Rebased and squashed.

Copy link
Collaborator

@ellemouton ellemouton left a comment

Choose a reason for hiding this comment

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

LGTM! Just needs another rebase as there is a merge conflict in the release docs 🙏

Simplify code by using the require package instead of t.Fatal().
Simplify code by using the require package instead of t.Fatal().
@morehouse
Copy link
Collaborator Author

Rebased.

@guggero guggero merged commit 7dacf5e into lightningnetwork:master May 23, 2023
22 of 24 checks passed
@morehouse morehouse deleted the fuzz_require branch May 23, 2023 18:39
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.

None yet

3 participants