Skip to content

Commit 35c5879

Browse files
rafal-chxgreenx
andauthored
Rework TxStatusManager tests (#2871)
Closes #2837 ## Description This PR makes the tests for `TxStatusManager` more lean. Mainly it removes duplication of tests (some tests were testing for the same thing, but in slightly different way) and covers some more cases. ## Checklist - [X] New behavior is reflected in tests ### Before requesting review - [X] I have reviewed the code myself --------- Co-authored-by: Green Baneling <[email protected]>
1 parent e34a398 commit 35c5879

File tree

5 files changed

+722
-721
lines changed

5 files changed

+722
-721
lines changed

crates/services/tx_status_manager/Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ tracing = { workspace = true }
2525
[dev-dependencies]
2626
fuel-core-services = { workspace = true, features = ["test-helpers"] }
2727
fuel-core-tx-status-manager = { path = ".", features = ["test-helpers"] }
28-
fuel-core-types = { path = "./../../types", features = ["test-helpers"] }
28+
fuel-core-types = { path = "./../../types", features = [
29+
"test-helpers",
30+
"serde",
31+
] }
2932
mockall = { workspace = true }
33+
postcard = { workspace = true }
3034
proptest = { workspace = true }
3135
test-case = { workspace = true }
3236
test-strategy = { workspace = true }

crates/services/tx_status_manager/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ mod tx_status_stream;
1515
mod update_sender;
1616
pub mod utils;
1717

18-
pub use manager::TxStatusManager;
1918
pub use service::{
2019
new_service,
2120
SharedData,

0 commit comments

Comments
 (0)