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