fix: preserve documents on repeat create

This commit is contained in:
Eric Wendland 2026-07-05 22:43:02 +02:00
commit 6fc1410e65
3 changed files with 25 additions and 4 deletions

View file

@ -3617,6 +3617,14 @@ fn kv_create_set_get_use_local_store() {
other => panic!("unexpected response: {other:?}"),
}
geth_node::handle_request(
&node,
geth_control::ControlRequest::KvCreate {
name: "prefs".to_owned(),
},
)
.expect("repeat kv create");
let response = geth_node::handle_request(
&node,
geth_control::ControlRequest::KvGet {
@ -3772,6 +3780,14 @@ fn document_create_and_status_use_local_store() {
other => panic!("unexpected response: {other:?}"),
}
geth_node::handle_request(
&node,
geth_control::ControlRequest::DocumentCreate {
name: "notes".to_owned(),
},
)
.expect("repeat document create");
let reopened = geth_node::open_node(&paths).expect("reopen node");
let response = geth_node::handle_request(
&reopened,