@@ -10,14 +10,15 @@ use bdk_chain::{
10
10
use bdk_testenv:: { anyhow, TestEnv } ;
11
11
use bitcoin:: { hashes:: Hash , Block , OutPoint , ScriptBuf , WScriptHash } ;
12
12
use bitcoincore_rpc:: RpcApi ;
13
-
13
+ use serial_test :: serial ;
14
14
/// Ensure that blocks are emitted in order even after reorg.
15
15
///
16
16
/// 1. Mine 101 blocks.
17
17
/// 2. Emit blocks from [`Emitter`] and update the [`LocalChain`].
18
18
/// 3. Reorg highest 6 blocks.
19
19
/// 4. Emit blocks from [`Emitter`] and re-update the [`LocalChain`].
20
20
#[ test]
21
+ #[ serial]
21
22
pub fn test_sync_local_chain ( ) -> anyhow:: Result < ( ) > {
22
23
let env = TestEnv :: new ( ) ?;
23
24
let network_tip = env. rpc_client ( ) . get_block_count ( ) ?;
@@ -129,6 +130,7 @@ pub fn test_sync_local_chain() -> anyhow::Result<()> {
129
130
///
130
131
/// [`EmittedUpdate::into_tx_graph_update`]: bdk_bitcoind_rpc::EmittedUpdate::into_tx_graph_update
131
132
#[ test]
133
+ #[ serial]
132
134
fn test_into_tx_graph ( ) -> anyhow:: Result < ( ) > {
133
135
let env = TestEnv :: new ( ) ?;
134
136
@@ -240,6 +242,7 @@ fn test_into_tx_graph() -> anyhow::Result<()> {
240
242
/// TODO: If the reorg height is lower than the fallback height, how do we find a block height to
241
243
/// emit that can connect with our receiver chain?
242
244
#[ test]
245
+ #[ serial]
243
246
fn ensure_block_emitted_after_reorg_is_at_reorg_height ( ) -> anyhow:: Result < ( ) > {
244
247
const EMITTER_START_HEIGHT : usize = 100 ;
245
248
const CHAIN_TIP_HEIGHT : usize = 110 ;
@@ -315,6 +318,7 @@ fn get_balance(
315
318
/// If a block is reorged out, ensure that containing transactions that do not exist in the
316
319
/// replacement block(s) become unconfirmed.
317
320
#[ test]
321
+ #[ serial]
318
322
fn tx_can_become_unconfirmed_after_reorg ( ) -> anyhow:: Result < ( ) > {
319
323
const PREMINE_COUNT : usize = 101 ;
320
324
const ADDITIONAL_COUNT : usize = 11 ;
@@ -406,6 +410,7 @@ fn tx_can_become_unconfirmed_after_reorg() -> anyhow::Result<()> {
406
410
/// When we call Emitter::mempool multiple times, mempool txs should not be re-emitted, even if the
407
411
/// chain tip is extended.
408
412
#[ test]
413
+ #[ serial]
409
414
fn mempool_avoids_re_emission ( ) -> anyhow:: Result < ( ) > {
410
415
const BLOCKS_TO_MINE : usize = 101 ;
411
416
const MEMPOOL_TX_COUNT : usize = 2 ;
@@ -471,6 +476,7 @@ fn mempool_avoids_re_emission() -> anyhow::Result<()> {
471
476
/// that `mempool` should always re-emit txs that have introduced at a height greater than the last
472
477
/// emitted block height.
473
478
#[ test]
479
+ #[ serial]
474
480
fn mempool_re_emits_if_tx_introduction_height_not_reached ( ) -> anyhow:: Result < ( ) > {
475
481
const PREMINE_COUNT : usize = 101 ;
476
482
const MEMPOOL_TX_COUNT : usize = 21 ;
@@ -559,6 +565,7 @@ fn mempool_re_emits_if_tx_introduction_height_not_reached() -> anyhow::Result<()
559
565
560
566
/// Ensure we force re-emit all mempool txs after reorg.
561
567
#[ test]
568
+ #[ serial]
562
569
fn mempool_during_reorg ( ) -> anyhow:: Result < ( ) > {
563
570
const TIP_DIFF : usize = 10 ;
564
571
const PREMINE_COUNT : usize = 101 ;
@@ -682,6 +689,7 @@ fn mempool_during_reorg() -> anyhow::Result<()> {
682
689
/// The block hash of 99b should be different than 99a, but their previous block hashes should
683
690
/// be the same.
684
691
#[ test]
692
+ #[ serial]
685
693
fn no_agreement_point ( ) -> anyhow:: Result < ( ) > {
686
694
const PREMINE_COUNT : usize = 101 ;
687
695
0 commit comments