|
|
@ -911,10 +911,9 @@ fn errors_do_stuff() { |
|
|
|
// The DB will still be open when we try to destroy it and the lock should fail.
|
|
|
|
// The DB will still be open when we try to destroy it and the lock should fail.
|
|
|
|
match DB::destroy(&opts, path) { |
|
|
|
match DB::destroy(&opts, path) { |
|
|
|
Err(s) => { |
|
|
|
Err(s) => { |
|
|
|
assert!(s == |
|
|
|
let message = s.to_string(); |
|
|
|
Error::new("IO error: lock _rust_rocksdb_error/LOCK: No \ |
|
|
|
assert!(message.find("IO error:").is_some()); |
|
|
|
locks available" |
|
|
|
assert!(message.find("_rust_rocksdb_error/LOCK:").is_some()); |
|
|
|
.to_owned())) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
Ok(_) => panic!("should fail"), |
|
|
|
Ok(_) => panic!("should fail"), |
|
|
|
} |
|
|
|
} |
|
|
|