fix failing master build: update tests to new init_restore signature. (#2069)

This commit is contained in:
Robert Habermeier 2016-09-11 20:17:05 +02:00 committed by Arkadiy Paronyan
parent dcfd7eab6d
commit edcc4080d5

View File

@ -80,8 +80,8 @@ fn restored_is_equivalent() {
let manifest = service.manifest().unwrap();
service.init_restore(manifest.clone()).unwrap();
assert!(service.init_restore(manifest.clone()).is_ok());
service.init_restore(manifest.clone(), true).unwrap();
assert!(service.init_restore(manifest.clone(), true).is_ok());
for hash in manifest.state_hashes {
let chunk = service.chunk(hash).unwrap();
@ -129,13 +129,13 @@ fn guards_delete_folders() {
state_root: Default::default(),
};
service.init_restore(manifest.clone()).unwrap();
service.init_restore(manifest.clone(), true).unwrap();
assert!(path.exists());
service.abort_restore();
assert!(!path.exists());
service.init_restore(manifest.clone()).unwrap();
service.init_restore(manifest.clone(), true).unwrap();
assert!(path.exists());
drop(service);