Skip to content

Commit 6812a11

Browse files
committed
added test for get_index_info
1 parent 7a584a5 commit 6812a11

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

integration_test/src/main.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ fn main() {
215215
test_disconnect_node(&cl);
216216
test_add_ban(&cl);
217217
test_set_network_active(&cl);
218+
test_get_index_info(&cl);
218219
test_stop(cl);
219220
}
220221

@@ -1262,6 +1263,13 @@ fn test_getblocktemplate(cl: &Client) {
12621263
cl.generate_to_address(2, &RANDOM_ADDRESS).unwrap();
12631264
}
12641265

1266+
fn test_get_index_info(cl: &Client) {
1267+
let gii = cl.get_index_info().unwrap();
1268+
assert!(gii.txindex.is_some());
1269+
assert!(gii.coinstatsindex.is_none());
1270+
assert!(gii.basic_block_filter_index.is_some());
1271+
}
1272+
12651273
fn test_stop(cl: Client) {
12661274
println!("Stopping: '{}'", cl.stop().unwrap());
12671275
}

0 commit comments

Comments
 (0)