Skip to content

tests: Add sanity tests for ChannelOpens #374

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

Conversation

dongcarl
Copy link
Contributor

@dongcarl dongcarl commented Aug 2, 2019

No description provided.

@dongcarl dongcarl force-pushed the 2019-08-channel-open-sanity branch from 1be007b to 03d9944 Compare August 2, 2019 21:16
@codecov
Copy link

codecov bot commented Aug 2, 2019

Codecov Report

Merging #374 into master will increase coverage by 0.09%.
The diff coverage is 91.3%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #374      +/-   ##
==========================================
+ Coverage   87.39%   87.48%   +0.09%     
==========================================
  Files          29       29              
  Lines       15751    15775      +24     
==========================================
+ Hits        13765    13801      +36     
+ Misses       1986     1974      -12
Impacted Files Coverage Δ
src/ln/channel.rs 84.69% <ø> (+0.32%) ⬆️
src/ln/functional_tests.rs 96.29% <91.3%> (-0.03%) ⬇️
src/ln/channelmanager.rs 81.56% <0%> (+0.34%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 56f16ea...00410bf. Read the comment docs.


let open_channel_message = get_event_msg!(nodes[0], MessageSendEvent::SendOpenChannel, nodes[1].node.get_our_node_id());

let insane_open_helper = |expected_error_str, message_mutator: fn(msgs::OpenChannel) -> msgs::OpenChannel| {
Copy link
Collaborator

Choose a reason for hiding this comment

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

You dont actually check this?

Copy link
Collaborator

Choose a reason for hiding this comment

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

expected_error_string, that is.

@dongcarl dongcarl force-pushed the 2019-08-channel-open-sanity branch from 03d9944 to 00410bf Compare August 9, 2019 14:17
@dongcarl
Copy link
Contributor Author

dongcarl commented Aug 9, 2019

@TheBlueMatt Let me know if the comments are inaccurate

@TheBlueMatt TheBlueMatt merged commit ab8f5a8 into lightningdevkit:master Aug 9, 2019
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