Skip to content

Commit 14c0d37

Browse files
committed
Move VSS integration tests to integration test folder
1 parent 139f58f commit 14c0d37

File tree

5 files changed

+300
-37
lines changed

5 files changed

+300
-37
lines changed

.github/workflows/vss-integration.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ jobs:
7474
run: |
7575
cd ldk-node
7676
export TEST_VSS_BASE_URL="http://localhost:8080/vss"
77-
RUSTFLAGS="--cfg=vss_test --cfg=vss" cargo build --verbose --color always
78-
RUSTFLAGS="--cfg=vss_test --cfg=vss" cargo test -- --nocapture
77+
RUSTFLAGS="--cfg vss_test --cfg vss" cargo build --verbose --color always
78+
RUSTFLAGS="--cfg vss_test --cfg vss" cargo test --test integration_tests_vss
7979
8080
- name: Cleanup
8181
run: |

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ lightning = { version = "0.0.119", features = ["std", "_test_utils"] }
7878
#lightning = { git = "https://github.com/lightningdevkit/rust-lightning", branch="main", features = ["std", "_test_utils"] }
7979
electrsd = { version = "0.26.0", features = ["legacy", "esplora_a33e97e1", "bitcoind_25_0"] }
8080
electrum-client = { version = "0.18.0", default-features = true }
81+
bitcoincore-rpc = { version = "0.17.0", default-features = false }
8182
proptest = "1.0.0"
8283
regex = "1.5.6"
8384

8485
[target.'cfg(cln_test)'.dev-dependencies]
8586
clightningrpc = { version = "0.3.0-beta.8", default-features = false }
86-
bitcoincore-rpc = { version = "0.17.0", default-features = false }
8787

8888
[build-dependencies]
8989
uniffi = { version = "0.25.1", features = ["build"], optional = true }

src/test/functional_tests.rs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,6 @@ fn channel_full_cycle() {
1818
do_channel_full_cycle(node_a, node_b, &bitcoind, &electrsd, false);
1919
}
2020

21-
#[test]
22-
#[cfg(vss_test)]
23-
fn channel_full_cycle_with_vss_store() {
24-
let (bitcoind, electrsd) = setup_bitcoind_and_electrsd();
25-
println!("== Node A ==");
26-
let esplora_url = format!("http://{}", electrsd.esplora_url.as_ref().unwrap());
27-
let config_a = random_config();
28-
let mut builder_a = NodeBuilder::from_config(config_a);
29-
builder_a.set_esplora_server(esplora_url.clone());
30-
let vss_base_url = std::env::var("TEST_VSS_BASE_URL").unwrap();
31-
let node_a = builder_a.build_with_vss_store(&vss_base_url, "node_1_store".to_string()).unwrap();
32-
node_a.start().unwrap();
33-
34-
println!("\n== Node B ==");
35-
let config_b = random_config();
36-
let mut builder_b = NodeBuilder::from_config(config_b);
37-
builder_b.set_esplora_server(esplora_url);
38-
let node_b = builder_b.build_with_vss_store(&vss_base_url, "node_2_store".to_string()).unwrap();
39-
node_b.start().unwrap();
40-
41-
do_channel_full_cycle(node_a, node_b, &bitcoind, &electrsd, false);
42-
}
43-
4421
#[test]
4522
fn channel_full_cycle_0conf() {
4623
let (bitcoind, electrsd) = setup_bitcoind_and_electrsd();

0 commit comments

Comments
 (0)