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

Add sample integration test #6

Merged
merged 2 commits into from
Dec 2, 2024
Merged

Conversation

namloan
Copy link
Contributor

@namloan namloan commented Nov 29, 2024

#3

Based on #5

Output from cargo test -- --nocapture

     Running tests/bisq_musig_integration_test.rs (target/debug/deps/bisq_musig_integration_test-5796b1db118fe334)

running 1 test
Starting the setup...
Successfully ran the curl command.
Nigiri started successfully.
Setup completed successfully.
Creating wallet for Alice...
Creating wallet for Bob...
Getting a new address for Alice...
Getting a new address for Bob...
Funding Alice's wallet with the faucet...
txId: 7a13fae06f705015bf571368d17aa68d63319348e942890f28b8f5503ff079e3

Confirming Alice's balance after faucet funding...
Alice's balance after funding: 1
Mining a block to confirm faucet funding...
Sending funds from Alice to Bob...
Transaction ID: dcc84167f5353d92edbc4f08e6f87585c057e2d592e52d126bdd23048169d1e3
Mining a new block to confirm the transaction...
Forcing Bob's wallet to rescan the blockchain...
Verifying Alice's balance...
Alice's balance after sending funds: 0.98999859
Verifying Bob's balance...
Bob's balance after receiving funds: 0.01
Test passed: Alice's and Bob's balances are as expected.
test test_bisq_musig ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 21.07s

Downloads, installs and starts up Nigiri in the local host.
Assumes that Docker is installed.

Nigiri starts up Docker containers for bitcoind, electrs and esplora in regtest.
The integration tests should be able to connect to them.
@ChrisSon15 ChrisSon15 merged commit 8c08971 into bisq-network:main Dec 2, 2024
@namloan namloan deleted the test_setup_2 branch December 3, 2024 12:37
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