fix failing master build: update tests to new init_restore signature. (#2069)
This commit is contained in:
parent
dcfd7eab6d
commit
edcc4080d5
@ -80,8 +80,8 @@ fn restored_is_equivalent() {
|
|||||||
|
|
||||||
let manifest = service.manifest().unwrap();
|
let manifest = service.manifest().unwrap();
|
||||||
|
|
||||||
service.init_restore(manifest.clone()).unwrap();
|
service.init_restore(manifest.clone(), true).unwrap();
|
||||||
assert!(service.init_restore(manifest.clone()).is_ok());
|
assert!(service.init_restore(manifest.clone(), true).is_ok());
|
||||||
|
|
||||||
for hash in manifest.state_hashes {
|
for hash in manifest.state_hashes {
|
||||||
let chunk = service.chunk(hash).unwrap();
|
let chunk = service.chunk(hash).unwrap();
|
||||||
@ -129,13 +129,13 @@ fn guards_delete_folders() {
|
|||||||
state_root: Default::default(),
|
state_root: Default::default(),
|
||||||
};
|
};
|
||||||
|
|
||||||
service.init_restore(manifest.clone()).unwrap();
|
service.init_restore(manifest.clone(), true).unwrap();
|
||||||
assert!(path.exists());
|
assert!(path.exists());
|
||||||
|
|
||||||
service.abort_restore();
|
service.abort_restore();
|
||||||
assert!(!path.exists());
|
assert!(!path.exists());
|
||||||
|
|
||||||
service.init_restore(manifest.clone()).unwrap();
|
service.init_restore(manifest.clone(), true).unwrap();
|
||||||
assert!(path.exists());
|
assert!(path.exists());
|
||||||
|
|
||||||
drop(service);
|
drop(service);
|
||||||
|
Loading…
Reference in New Issue
Block a user