Skip to content

Commit bbd6514

Browse files
committed
fix(gates): forward storage features in G11/G12 cargo-test shell-outs
NodeState::open now opens a backend per config.storage_backend; running `cargo test -p bitcoin-rs-node --test {crash_recovery,shutdown}` with the node crate's empty default features therefore fails at runtime. Pass `--no-default-features --features rocksdb,fjall,redb` from the gate wrappers so the shelled-out cargo invocation matches the bin's own compiled feature set. Op: correct Restores: test:g11_crash_recovery, test:g12_graceful_shutdown
1 parent faa01ee commit bbd6514

2 files changed

Lines changed: 20 additions & 2 deletions

File tree

bin/bitcoin-rs/tests/gates/g11_crash_recovery.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,16 @@
77
#[test]
88
fn crash_recovery() {
99
let status = std::process::Command::new(env!("CARGO"))
10-
.args(["test", "-p", "bitcoin-rs-node", "--test", "crash_recovery"])
10+
.args([
11+
"test",
12+
"-p",
13+
"bitcoin-rs-node",
14+
"--no-default-features",
15+
"--features",
16+
"rocksdb,fjall,redb",
17+
"--test",
18+
"crash_recovery",
19+
])
1120
.status()
1221
.expect("spawn cargo");
1322
assert!(

bin/bitcoin-rs/tests/gates/g12_graceful_shutdown.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,16 @@
77
#[test]
88
fn graceful_shutdown() {
99
let status = std::process::Command::new(env!("CARGO"))
10-
.args(["test", "-p", "bitcoin-rs-node", "--test", "shutdown"])
10+
.args([
11+
"test",
12+
"-p",
13+
"bitcoin-rs-node",
14+
"--no-default-features",
15+
"--features",
16+
"rocksdb,fjall,redb",
17+
"--test",
18+
"shutdown",
19+
])
1120
.status()
1221
.expect("spawn cargo");
1322
assert!(status.success(), "node shutdown integration test must pass");

0 commit comments

Comments
 (0)