Skip to content

Instantly share code, notes, and snippets.

@wthrajat
Last active January 2, 2024 19:02
Show Gist options
  • Save wthrajat/ecfefc3c61120b9d9837814324cba939 to your computer and use it in GitHub Desktop.
Save wthrajat/ecfefc3c61120b9d9837814324cba939 to your computer and use it in GitHub Desktop.
coinswap integration test 2 January latest
$ cargo test --features integration-test                                                                                                ─╯
   Compiling coinswap v0.1.0 (/home/rajat/rust/teleport-transactions)
    Finished test [unoptimized + debuginfo] target(s) in 13.27s
     Running unittests src/lib.rs (target/debug/deps/coinswap-9f86603cd5b24c32)

running 39 tests
test protocol::contract::test::calculate_coinswap_fee_normal ... ok
test protocol::contract::test::test_contract_script_generation ... ok
test protocol::contract::test::test_check_reedemscript_is_multisig ... ok
test protocol::contract::test::test_contract_tx_miscellaneous ... ok
test protocol::contract::test::test_find_funding_output ... ok
test protocol::contract::test::test_pubkey_extraction_from_2of2_multisig ... ok
test protocol::contract::test::test_read_hashlock_pubkey_from_contract ... ok
test protocol::contract::test::test_read_timelock_pubkey_from_contract ... ok
test taker::config::tests::test_different_data ... ok
test maker::config::tests::test_missing_fields ... ok
test maker::config::tests::test_incorrect_data_type ... ok
test maker::config::tests::test_missing_file ... ok
test maker::config::tests::test_valid_config ... ok
test taker::config::tests::test_incorrect_data_type ... ok
test utill::tests::test_convert_json_rpc_bitcoin_to_satoshis ... ok
test taker::config::tests::test_missing_fields ... ok
test utill::tests::test_hd_path_from_descriptor ... ok
test utill::tests::test_hd_path_from_descriptor_gets_none ... ok
test utill::tests::test_redeemscript_to_scriptpubkey_custom ... ok
test utill::tests::test_redeemscript_to_scriptpubkey_p2pkh ... ok
test utill::tests::test_redeemscript_to_scriptpubkey_1of2musig ... ok
test taker::config::tests::test_missing_file ... ok
test utill::tests::test_to_hex ... ok
test taker::config::tests::test_valid_config ... ok
test wallet::direct_send::tests::test_coin_to_spend_long_form_and_short_form_parsing ... ok
test wallet::direct_send::tests::test_send_amount_parsing ... ok
test wallet::direct_send::tests::test_destination_parsing ... ok
test wallet::fidelity::test::test_fidelity_bond_value_function_behavior ... ok
test protocol::contract::test::test_check_hashvalues_are_equal ... ok
test protocol::contract::test::test_maker_pubkey_computation ... ok
test protocol::contract::test::test_maker_pubkey_nonce_derviation ... ok
test protocol::contract::test::test_apply_two_signatures_to_2of2_multisig_spend ... ok
test protocol::contract::test::test_check_multisig_has_pubkey ... ok
test protocol::contract::test::test_check_hashlock_has_pubkey ... ok
test utill::tests::test_str_to_bitcoin_network ... ok
test utill::tests::test_send_message ... ok
test utill::tests::test_generate_maker_keys ... ok
test protocol::contract::test::test_contract_sig_validation ... ok
test wallet::storage::tests::test_write_and_read_wallet_to_disk ... ok

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

     Running unittests src/bin/teleport.rs (target/debug/deps/teleport-4d4fd1734e75a850)

running 1 test
test clap_parser_test::verify_clap_cli_test ... ok

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

     Running tests/abort1.rs (target/debug/deps/abort1-29336aae8c10e8e3)

running 1 test
test test_stop_taker_after_setup has been running for over 60 seconds
test test_stop_taker_after_setup ... ok

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

     Running tests/abort2_case1.rs (target/debug/deps/abort2_case1-924190a6d8599650)

running 1 test
Error: A fatal internal error occurred, see debug.log for details
Error: A fatal internal error occurred, see debug.log for details
/home/rajat/rust/teleport-transactions/tests/temp-files/8purAkaJ/.bitcoin/regtest/wallets/f253d0c62-taker: No such file or directory
/home/rajat/rust/teleport-transactions/tests/temp-files/8purAkaJ/.bitcoin/regtest/wallets/maker16102: No such file or directory
/home/rajat/rust/teleport-transactions/tests/temp-files/8purAkaJ/.bitcoin/regtest/wallets/maker6102: No such file or directory
test test_abort_case_2_move_on_with_other_makers has been running for over 60 seconds
test test_abort_case_2_move_on_with_other_makers ... ok

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

     Running tests/abort2_case2.rs (target/debug/deps/abort2_case2-8101a1850cf90afe)

running 1 test
Error: A fatal internal error occurred, see debug.log for details
Error: A fatal internal error occurred, see debug.log for details
/home/rajat/rust/teleport-transactions/tests/temp-files/wYbNPDAG/.bitcoin/regtest/wallets/955422e5d-taker: No such file or directory
/home/rajat/rust/teleport-transactions/tests/temp-files/wYbNPDAG/.bitcoin/regtest/wallets/maker6102: No such file or directory
/home/rajat/rust/teleport-transactions/tests/temp-files/wYbNPDAG/.bitcoin/regtest/wallets/maker16102: No such file or directory
/home/rajat/rust/teleport-transactions/tests/temp-files/wYbNPDAG/.bitcoin/regtest/wallets/maker26102: No such file or directory
test test_abort_case_2_recover_if_no_makers_found ... ok

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

     Running tests/abort2_case3.rs (target/debug/deps/abort2_case3-d1ede4b47ee0f6b2)

running 1 test
test maker_drops_after_sending_senders_sigs has been running for over 60 seconds
test maker_drops_after_sending_senders_sigs ... ok

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

     Running tests/abort3_case1.rs (target/debug/deps/abort3_case1-d79c7142dc76e60d)

running 1 test
Error: A fatal internal error occurred, see debug.log for details
Error: A fatal internal error occurred, see debug.log for details
/home/rajat/rust/teleport-transactions/tests/temp-files/gyOyrTYd/.bitcoin/regtest/wallets/3d9b01fdd-taker: No such file or directory
/home/rajat/rust/teleport-transactions/tests/temp-files/gyOyrTYd/.bitcoin/regtest/wallets/maker16102: No such file or directory
/home/rajat/rust/teleport-transactions/tests/temp-files/gyOyrTYd/.bitcoin/regtest/wallets/maker6102: No such file or directory
test abort3_case1_close_at_contract_sigs_for_recvr_and_sender has been running for over 60 seconds
test abort3_case1_close_at_contract_sigs_for_recvr_and_sender ... ok

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

     Running tests/abort3_case2.rs (target/debug/deps/abort3_case2-6459422d3afde38f)

running 1 test
Error: A fatal internal error occurred, see debug.log for details
Error: A fatal internal error occurred, see debug.log for details
/home/rajat/rust/teleport-transactions/tests/temp-files/gsnf4Vqs/.bitcoin/regtest/wallets/ff694374e-taker: No such file or directory
/home/rajat/rust/teleport-transactions/tests/temp-files/gsnf4Vqs/.bitcoin/regtest/wallets/maker6102: No such file or directory
/home/rajat/rust/teleport-transactions/tests/temp-files/gsnf4Vqs/.bitcoin/regtest/wallets/maker16102: No such file or directory
test abort3_case2_close_at_contract_sigs_for_recvr has been running for over 60 seconds
test abort3_case2_close_at_contract_sigs_for_recvr ... ok

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

     Running tests/abort3_case3.rs (target/debug/deps/abort3_case3-0a6d26d596d5d204)

running 1 test
Error: A fatal internal error occurred, see debug.log for details
Error: A fatal internal error occurred, see debug.log for details
/home/rajat/rust/teleport-transactions/tests/temp-files/fQWXCRN4/.bitcoin/regtest/wallets/88adf134e-taker: No such file or directory
/home/rajat/rust/teleport-transactions/tests/temp-files/fQWXCRN4/.bitcoin/regtest/wallets/maker6102: No such file or directory
/home/rajat/rust/teleport-transactions/tests/temp-files/fQWXCRN4/.bitcoin/regtest/wallets/maker16102: No such file or directory
test abort3_case2_close_at_contract_sigs_for_recvr has been running for over 60 seconds
test abort3_case2_close_at_contract_sigs_for_recvr ... ok

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

     Running tests/malice1.rs (target/debug/deps/malice1-0be509573609b6f9)

running 1 test
Error: A fatal internal error occurred, see debug.log for details
Error: A fatal internal error occurred, see debug.log for details
/home/rajat/rust/teleport-transactions/tests/temp-files/XLgde9jV/.bitcoin/regtest/wallets/c25b6f859-taker: No such file or directory
/home/rajat/rust/teleport-transactions/tests/temp-files/XLgde9jV/.bitcoin/regtest/wallets/maker16102: No such file or directory
/home/rajat/rust/teleport-transactions/tests/temp-files/XLgde9jV/.bitcoin/regtest/wallets/maker6102: No such file or directory
test malice1_taker_broadcast_contract_prematurely has been running for over 60 seconds
test malice1_taker_broadcast_contract_prematurely ... ok

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

     Running tests/malice2.rs (target/debug/deps/malice2-1dbb5c730ae6aeca)

running 1 test
Error: A fatal internal error occurred, see debug.log for details
Error: A fatal internal error occurred, see debug.log for details
/home/rajat/rust/teleport-transactions/tests/temp-files/RiQ9YtKF/.bitcoin/regtest/wallets/3e1e67c7d-taker: No such file or directory
/home/rajat/rust/teleport-transactions/tests/temp-files/RiQ9YtKF/.bitcoin/regtest/wallets/maker6102: No such file or directory
/home/rajat/rust/teleport-transactions/tests/temp-files/RiQ9YtKF/.bitcoin/regtest/wallets/maker16102: No such file or directory
test malice2_maker_broadcast_contract_prematurely has been running for over 60 seconds
test malice2_maker_broadcast_contract_prematurely ... ok

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

     Running tests/standard_swap.rs (target/debug/deps/standard_swap-4d2b8ba8cb5fad05)

running 1 test
Error: A fatal internal error occurred, see debug.log for details
Error: A fatal internal error occurred, see debug.log for details
/home/rajat/rust/teleport-transactions/tests/temp-files/IJdm23jQ/.bitcoin/regtest/wallets/7fb32911f-taker: No such file or directory
/home/rajat/rust/teleport-transactions/tests/temp-files/IJdm23jQ/.bitcoin/regtest/wallets/maker6102: No such file or directory
/home/rajat/rust/teleport-transactions/tests/temp-files/IJdm23jQ/.bitcoin/regtest/wallets/maker16102: No such file or directory
test test_standard_coinswap ... ok

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

   Doc-tests coinswap
Error: A fatal internal error occurred, see debug.log for details
Error: A fatal internal error occurred, see debug.log for details
/home/rajat/rust/teleport-transactions/tests/temp-files/sF15gsoH/.bitcoin/regtest/wallets/68320817b-taker: No such file or directory
/home/rajat/rust/teleport-transactions/tests/temp-files/sF15gsoH/.bitcoin/regtest/wallets/maker16102: No such file or directory
/home/rajat/rust/teleport-transactions/tests/temp-files/sF15gsoH/.bitcoin/regtest/wallets/maker6102: No such file or directory

running 0 tests

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

Here is my ./tests/temp-files directory tree:

tests/temp-files
├── 16GiSuWc
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── 752664324-taker
│       ├── maker16102
│       └── maker6102
├── 2Rcig8gN
├── 2uEoaCcP
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── 997668be0-taker
│       ├── maker16102
│       └── maker6102
├── 52Zf8xf0
│   ├── maker16102
│   ├── maker6102
│   └── taker
├── 6GFEiaRx
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── 26f873782-taker
│       ├── maker16102
│       └── maker6102
├── 6iGPTSPC
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── face63a6d-taker
│       ├── maker16102
│       └── maker6102
├── 7QqsQGuL
│   ├── configs
│   │   └── taker.toml
│   └── wallets
│       └── b8981ad5a-taker
├── aANvf91Z
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── a14913ea2-taker
│       ├── maker16102
│       └── maker6102
├── abPcpr6J
│   ├── configs
│   │   └── taker.toml
│   └── wallets
│       └── 2d12095f4-taker
├── AZKoyC2b
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── 1200e808d-taker
│       ├── maker16102
│       └── maker6102
├── BoXnuxCt
│   ├── maker6102
│   └── taker
├── BrPkEtzf
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── 6e0aae8f4-taker
│       ├── maker16102
│       └── maker6102
├── BU7EpJcp
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── 6142bd386-taker
│       ├── maker16102
│       └── maker6102
├── C5Iq4YfJ
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── 221f11a33-taker
│       ├── maker16102
│       └── maker6102
├── D4EULtmy
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── adc1838ab-taker
│       ├── maker16102
│       └── maker6102
├── dOP0FfmC
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── d2b9ea361-taker
│       ├── maker16102
│       └── maker6102
├── dVEjZXr3
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── 60cce22b9-taker
│       ├── maker16102
│       └── maker6102
├── etZHk923
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── f2cf62999-taker
│       ├── maker16102
│       └── maker6102
├── fdEmln79
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── 072283565-taker
│       └── maker6102
├── fxu8Xcf0
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── 0a559b9e5-taker
│       ├── maker16102
│       └── maker6102
├── gDsYh0Ur
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── aecd72dfa-taker
│       ├── maker16102
│       └── maker6102
├── GHIkLxTE
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── 16812e4ad-taker
│       ├── maker16102
│       └── maker6102
├── GqwsKZ76
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── 4178b4934-taker
│       ├── maker16102
│       └── maker6102
├── GSdU4oG9
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── 425d28bba-taker
│       ├── maker16102
│       └── maker6102
├── inAqJJiq
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── afd566055-taker
│       ├── maker16102
│       └── maker6102
├── jd3cVoGh
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── e436e38b1-taker
│       ├── maker16102
│       └── maker6102
├── jGXZg842
│   ├── maker16102
│   ├── maker6102
│   └── taker
├── jh8fkL5C
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── c59e6073d-taker
│       ├── maker16102
│       └── maker6102
├── L62q8qQJ
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── 232b1350e-taker
│       ├── maker16102
│       └── maker6102
├── LOyWvKC0
│   ├── configs
│   │   └── taker.toml
│   └── wallets
│       └── 36895d42a-taker
├── LwGmoxwL
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── 44737330f-taker
│       ├── maker16102
│       └── maker6102
├── MCOtPLsS
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── 15bc9bdc6-taker
│       ├── maker16102
│       └── maker6102
├── Mkk46SOc
│   ├── maker16102
│   ├── maker6102
│   └── taker
├── nylwTHvg
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── 64d2ffeb2-taker
│       ├── maker16102
│       └── maker6102
├── o394eLht
│   ├── configs
│   │   └── taker.toml
│   └── wallets
│       └── 447824e28-taker
├── OpbP8Pr3
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── 0c946fee6-taker
│       ├── maker16102
│       └── maker6102
├── PFv6tKJO
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── 7fbdc5041-taker
│       ├── maker16102
│       └── maker6102
├── RCbPA25U
│   ├── configs
│   │   └── taker.toml
│   └── wallets
│       └── fa2dc18ab-taker
├── RPNSGCEd
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── eedac16e6-taker
│       ├── maker16102
│       └── maker6102
├── rT0bQ9tN
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── f258953bd-taker
│       ├── maker16102
│       └── maker6102
├── rxyRt9pv
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── ebb9b9476-taker
│       ├── maker16102
│       └── maker6102
├── SfZrCHjF
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── b44b4fafc-taker
│       ├── maker16102
│       └── maker6102
├── SnuFOmEn
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── 0dbd83e47-taker
│       ├── maker16102
│       └── maker6102
├── syaZzuCE
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── 53894aa9c-taker
│       ├── maker16102
│       └── maker6102
├── Tlag9JAB
│   ├── maker16102
│   ├── maker6102
│   └── taker
├── TlDu0R7i
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── ba138ae48-taker
│       ├── maker16102
│       ├── maker26102
│       └── maker6102
├── TUBjSMOn
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── 1886e4cb5-taker
│       ├── maker16102
│       └── maker6102
├── U6muFKEJ
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── fd7644223-taker
│       ├── maker16102
│       └── maker6102
├── v8g3v284
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── c8cf3de41-taker
│       ├── maker16102
│       └── maker6102
├── wiW9YGMn
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── 160c9d8fc-taker
│       ├── maker16102
│       └── maker6102
├── X6eI6bdP
│   ├── maker16102
│   ├── maker6102
│   └── taker
├── yi8Frv3R
│   ├── configs
│   │   ├── maker.toml
│   │   └── taker.toml
│   └── wallets
│       ├── bf9e3dec1-taker
│       ├── maker16102
│       └── maker6102
└── Z6Pw9W2s
    ├── configs
    │   ├── maker.toml
    │   └── taker.toml
    └── wallets
        ├── adf6e5276-taker
        ├── maker16102
        └── maker6102

146 directories, 232 files
@wthrajat
Copy link
Author

wthrajat commented Jan 2, 2024

took 20m 8s

@i5hi
Copy link

i5hi commented Jan 2, 2024

i noted that many top level folders are not being created, like:

  • 8purAkaJ
  • wYbNPDAG
  • gyOyrTYd

i think basically everything in your test log. not able to find the equivalent in your tests/temp-files tree.

@wthrajat
Copy link
Author

wthrajat commented Jan 2, 2024

@i5hi right, none of the folders mentioned in the logs can be found in temp-files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment