Skip to content

Commit

Permalink
Merge pull request #128 from who-biz/fix-compile-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneshahn authored Feb 28, 2024
2 parents 66aba56 + d2975b9 commit c9f9e73
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/bin/tui/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ fn test_status_txhashset_kernels() {
kernels_total: 5000,
};
let basic_status = TUIStatusView::update_sync_status(status);
assert!(basic_status.contains("4%"), basic_status);
assert!(basic_status.contains("4%"), "{}", basic_status);
}

#[test]
Expand All @@ -339,5 +339,5 @@ fn test_status_txhashset_rproofs() {
rproofs_total: 1000,
};
let basic_status = TUIStatusView::update_sync_status(status);
assert!(basic_status.contains("64%"), basic_status);
assert!(basic_status.contains("64%"), "{}", basic_status);
}
15 changes: 8 additions & 7 deletions tests/cucumber.rs
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ mod mine_chain {
(FType::ProgPow, 0),
]
.into_iter()
.map(|&x| x)
.map(|x| x)
.collect();

let policies2 = [
Expand All @@ -725,7 +725,7 @@ mod mine_chain {
(FType::ProgPow, 0),
]
.into_iter()
.map(|&x| x)
.map(|x| x)
.collect();

let policies3 = [
Expand All @@ -735,7 +735,7 @@ mod mine_chain {
(FType::ProgPow, 100),
]
.into_iter()
.map(|&x| x)
.map(|x| x)
.collect();

set_policy_config(PolicyConfig {
Expand Down Expand Up @@ -1867,7 +1867,7 @@ fn setup() {
(FType::ProgPow, 0),
]
.into_iter()
.map(|&x| x)
.map(|x| x)
.collect();

let policies2 = [
Expand All @@ -1877,7 +1877,7 @@ fn setup() {
(FType::ProgPow, 0),
]
.into_iter()
.map(|&x| x)
.map(|x| x)
.collect();

let policies3 = [
Expand All @@ -1887,7 +1887,7 @@ fn setup() {
(FType::ProgPow, 100),
]
.into_iter()
.map(|&x| x)
.map(|x| x)
.collect();

set_policy_config(PolicyConfig {
Expand All @@ -1896,7 +1896,8 @@ fn setup() {
});
util::init_test_logger();
}
/// To run cucumber test: cargo test --package epic --test cucumber

// To run cucumber test: cargo test --package epic --test cucumber
cucumber! {
features: "./features", // Path to our feature files
world: crate::EdnaWorld, // The world needs to be the same for steps and the main cucumber call
Expand Down

0 comments on commit c9f9e73

Please sign in to comment.