Skip to content

Commit fe244d9

Browse files
committed
added serial_test to dependancies, use test serialization for event_dispatcher tests
1 parent 333f943 commit fe244d9

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed

Cargo.lock

Lines changed: 41 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

testnet/stacks-node/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ async-h1 = { version = "2.3.2", optional = true }
3232
async-std = { version = "1.6", optional = true, features = ["attributes"] }
3333
http-types = { version = "2.12", optional = true }
3434
thiserror = { workspace = true }
35+
serial_test = "3.2.0"
3536

3637
[target.'cfg(not(any(target_os = "macos", target_os="windows", target_arch = "arm")))'.dependencies]
3738
tikv-jemallocator = {workspace = true}

testnet/stacks-node/src/event_dispatcher.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1754,6 +1754,7 @@ mod test {
17541754
use std::time::Instant;
17551755

17561756
use clarity::vm::costs::ExecutionCost;
1757+
use serial_test::serial;
17571758
use stacks::burnchains::{PoxConstants, Txid};
17581759
use stacks::chainstate::nakamoto::{NakamotoBlock, NakamotoBlockHeader};
17591760
use stacks::chainstate::stacks::db::{StacksBlockHeaderTypes, StacksHeaderInfo};
@@ -2037,6 +2038,7 @@ mod test {
20372038
}
20382039

20392040
#[test]
2041+
#[serial]
20402042
fn test_process_pending_payloads() {
20412043
use mockito::Matcher;
20422044

@@ -2112,6 +2114,7 @@ mod test {
21122114
}
21132115

21142116
#[test]
2117+
#[serial]
21152118
fn test_send_payload_with_db() {
21162119
use mockito::Matcher;
21172120

@@ -2261,6 +2264,7 @@ mod test {
22612264
}
22622265

22632266
#[test]
2267+
#[serial]
22642268
fn test_send_payload_timeout() {
22652269
let port = get_random_port();
22662270
let timeout = Duration::from_secs(3);
@@ -2323,6 +2327,7 @@ mod test {
23232327
}
23242328

23252329
#[test]
2330+
#[serial]
23262331
fn test_send_payload_with_db_force_restart() {
23272332
let port = get_random_port();
23282333
let timeout = Duration::from_secs(3);

0 commit comments

Comments
 (0)