fix test so it can run more than once

This commit is contained in:
Jude Nelson
2020-07-27 01:13:46 -04:00
parent 5ba2293a2c
commit d569c0e6ef

View File

@@ -2358,6 +2358,10 @@ mod test {
#[test]
fn test_marf_unconfirmed() {
if fs::metadata("/tmp/test_marf_unconfirmed").is_ok() {
fs::remove_file("/tmp/test_marf_unconfirmed").unwrap();
}
let f = TrieFileStorage::<StacksBlockId>::open_unconfirmed("/tmp/test_marf_unconfirmed").unwrap();
let mut marf = MARF::<StacksBlockId>::from_storage(f);