]> Untitled Git - bdk/commitdiff
change feature to execute sync from rpc to test-rpc
authorRiccardo Casatta <riccardo@casatta.it>
Tue, 1 Jun 2021 12:18:40 +0000 (14:18 +0200)
committerRiccardo Casatta <riccardo@casatta.it>
Thu, 3 Jun 2021 08:56:01 +0000 (10:56 +0200)
.github/workflows/cont_integration.yml
Cargo.toml
run_blockchain_tests.sh
src/testutils/blockchain_tests.rs

index d9d2509422be4056b32050b1190ec2ce0a7d1dbb..f45d00b66d31e1282acf6257c7834b1327daa993 100644 (file)
@@ -124,7 +124,7 @@ jobs:
       - name: start ${{ matrix.blockchain.name }}
         run: nohup ${{ matrix.blockchain.start }} & sleep 5
       - name: Test
-        run: $HOME/.cargo/bin/cargo test --features ${{ matrix.blockchain.name }},test-blockchains --no-default-features ${{ matrix.blockchain.name }}::bdk_blockchain_tests
+        run: $HOME/.cargo/bin/cargo test --features test-${{ matrix.blockchain.name }},test-blockchains --no-default-features ${{ matrix.blockchain.name }}::bdk_blockchain_tests
 
   check-wasm:
     name: Check WASM
index 8c79559b1b347ec943fdb048cf4198bec38d40c2..446f6d3ea419142813691ce2b545ffaa15919f48 100644 (file)
@@ -63,6 +63,7 @@ rpc = ["bitcoincore-rpc"]
 test-blockchains = ["bitcoincore-rpc", "electrum-client"]
 test-electrum = ["electrum"]
 test-rpc = ["rpc"]
+test-esplora = ["esplora"]
 test-md-docs = ["electrum"]
 
 [dev-dependencies]
index 0ee3eb761cb50792a805d2cc6bb929f7dba090b5..cd094f5c70265da7119934c2c8eb49e4a8aab471 100755 (executable)
@@ -65,4 +65,4 @@ while ! cli getwalletinfo >/dev/null; do sleep 1; done
 # sleep again for good measure!
 sleep 1;
 
-cargo test --features "test-blockchains,$blockchain" --no-default-features "$blockchain::bdk_blockchain_tests::$test_name"
+cargo test --features "test-blockchains,test-$blockchain" --no-default-features "$blockchain::bdk_blockchain_tests::$test_name"
index cd40e560a450d6eb9da6902887638947f21fbf45..0b2b559e826117cd782e57bb78d0a3bb244395bd 100644 (file)
@@ -370,7 +370,7 @@ macro_rules! bdk_blockchain_tests {
                 let wallet = get_wallet_from_descriptors(&descriptors);
 
                 // rpc need to call import_multi before receiving any tx, otherwise will not see tx in the mempool
-                #[cfg(feature = "rpc")]
+                #[cfg(feature = "test-rpc")]
                 wallet.sync(noop_progress(), None).unwrap();
 
                 (wallet, descriptors, test_client)