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

test(protocol): add handshake with Bitcoin Core #56

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

rustaceanrob
Copy link
Collaborator

@rustaceanrob rustaceanrob commented Aug 9, 2024

Adds an integration test that can be run from a shell script. Would be a bit too lazy to add Bitcoin Core to CI so its ignored and mostly used to iterate on the API. Lmk what you think @nyonson

Update: Getting skill diffed by the CI. rust-bitcoin bumped MSRV to 1.63.0 so I am going to see if that helps fix it

Update 2: Yeah it fixed it. PR would also move MSRV to 1.63.0

@rustaceanrob rustaceanrob requested a review from nyonson August 9, 2024 14:33
@rustaceanrob rustaceanrob force-pushed the test-08-09 branch 4 times, most recently from 9518479 to 6ad7ade Compare August 9, 2024 15:45
.github/workflows/ci.yml Outdated Show resolved Hide resolved
@@ -0,0 +1,3 @@
bitcoind --chain=regtest --txindex --blockfilterindex --peerblockfilters --rpcport=18443 --rpcuser=test --rpcpassword=b324 --rest=1 --server=1 --listen=1 --v2transport=1 &
sleep 1
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would be pretty easy to add a timeout to this in the future, maybe when we get it in to CI.

#[test]
#[cfg(feature = "std")]
#[ignore = "CI"]
fn regtest_handshake() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Wonder if we should put this in it's own file since it has a third party dependency?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I would consider it an integration test even if it isn't ran in CI

@rustaceanrob rustaceanrob merged commit 7648209 into rust-bitcoin:main Aug 9, 2024
7 checks passed
@rustaceanrob rustaceanrob deleted the test-08-09 branch August 9, 2024 17:56
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