Skip to content

Commit 1a0f8bc

Browse files
committed
Use non-empty store_ids in VSS integration tests
For now VSS Server rejects empty `store_id`s, though we intend to change that in lightningdevkit/vss-server#95, until that lands we have to use non-empty `store_id`s.
1 parent 51f3f29 commit 1a0f8bc

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

tests/integration_tests_vss.rs

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async fn channel_full_cycle_with_vss_store() {
2828
.build_with_vss_store(
2929
config_a.node_entropy,
3030
vss_base_url.clone(),
31-
"".to_owned(),
31+
"store_id".to_owned(),
3232
HashMap::new(),
3333
)
3434
.unwrap();
@@ -39,7 +39,12 @@ async fn channel_full_cycle_with_vss_store() {
3939
let mut builder_b = Builder::from_config(config_b.node_config);
4040
builder_b.set_chain_source_esplora(esplora_url.clone(), None);
4141
let node_b = builder_b
42-
.build_with_vss_store(config_b.node_entropy, vss_base_url, "".to_owned(), HashMap::new())
42+
.build_with_vss_store(
43+
config_b.node_entropy,
44+
vss_base_url,
45+
"store".to_owned(),
46+
HashMap::new(),
47+
)
4348
.unwrap();
4449
node_b.start().unwrap();
4550

@@ -73,7 +78,12 @@ async fn vss_node_restart() {
7378
builder.set_storage_dir_path(storage_path.clone());
7479
builder.set_chain_source_esplora(esplora_url.clone(), None);
7580
let node = builder
76-
.build_with_vss_store(node_entropy, vss_base_url.clone(), "".to_owned(), HashMap::new())
81+
.build_with_vss_store(
82+
node_entropy,
83+
vss_base_url.clone(),
84+
"store_id".to_owned(),
85+
HashMap::new(),
86+
)
7787
.unwrap();
7888

7989
node.start().unwrap();
@@ -102,7 +112,7 @@ async fn vss_node_restart() {
102112
builder.set_chain_source_esplora(esplora_url, None);
103113

104114
let node = builder
105-
.build_with_vss_store(node_entropy, vss_base_url, "".to_owned(), HashMap::new())
115+
.build_with_vss_store(node_entropy, vss_base_url, "store_id".to_owned(), HashMap::new())
106116
.unwrap();
107117

108118
node.start().unwrap();

0 commit comments

Comments
 (0)