Fix tests

This commit is contained in:
Omar Abdulla
2025-07-13 23:05:21 +03:00
parent d71b39dbfb
commit a1ad9f2f95
2 changed files with 8 additions and 4 deletions
+4 -2
View File
@@ -283,8 +283,10 @@ impl Node for Instance {
})?;
}
// Remove the node's database so that subsequent runs do not run on the same database.
remove_dir_all(self.base_directory.join("data"))?;
// Remove the node's database so that subsequent runs do not run on the same database. We
// ignore the error just in case the directory didn't exist in the first place and therefore
// there's nothing to be deleted.
let _ = remove_dir_all(self.base_directory.join("data"));
Ok(())
}
+4 -2
View File
@@ -412,8 +412,10 @@ impl Node for KitchensinkNode {
})?;
}
// Remove the node's database so that subsequent runs do not run on the same database.
remove_dir_all(self.base_directory.join("chains"))?;
// Remove the node's database so that subsequent runs do not run on the same database. We
// ignore the error just in case the directory didn't exist in the first place and therefore
// there's nothing to be deleted.
let _ = remove_dir_all(self.base_directory.join("data"));
Ok(())
}