Skip to content

Commit

Permalink
feat(#9): clean after assert
Browse files Browse the repository at this point in the history
  • Loading branch information
h1alexbel committed Jun 5, 2024
1 parent ff60e25 commit c160bca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/xml/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ pub fn touch_storage(name: Option<&str>) -> Result<File, Error> {

#[cfg(test)]
mod tests {
use std::fs;
use std::path::Path;

use crate::xml::storage::touch_storage;
Expand All @@ -54,6 +55,7 @@ mod tests {
exists,
"storage file '{storage}' was not created, but should be"
);
fs::remove_file(storage).unwrap();
Ok(())
}

Expand All @@ -66,6 +68,7 @@ mod tests {
exists,
"storage file '{path}' was not created, but should be"
);
fs::remove_file(path).unwrap();
Ok(())
}
}

0 comments on commit c160bca

Please sign in to comment.