Removing futures-cpupool and upgrading to futures-0.3

This commit is contained in:
Paul Masurel
2019-11-15 18:35:31 +09:00
committed by GitHub
parent 598b076240
commit 42756c7474
14 changed files with 375 additions and 316 deletions

View File

@@ -28,11 +28,11 @@ fn test_failpoints_managed_directory_gc_if_delete_fails() {
// The initial 1*off is there to allow for the removal of the
// lock file.
fail::cfg("RAMDirectory::delete", "1*off->1*return").unwrap();
managed_directory.garbage_collect(Default::default);
assert!(managed_directory.garbage_collect(Default::default).is_ok());
assert!(managed_directory.exists(test_path));
// running the gc a second time should remove the file.
managed_directory.garbage_collect(Default::default);
assert!(managed_directory.garbage_collect(Default::default).is_ok());
assert!(
!managed_directory.exists(test_path),
"The file should have been deleted"