Skip to content

Commit

Permalink
Skip delete
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Xuanwo committed Jan 2, 2025
1 parent ee02fe4 commit a739a68
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/tests/behavior/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@ impl Fixture {
pub async fn cleanup(&self, op: impl Into<Operator>) {
let op = op.into();
let paths: Vec<_> = mem::take(self.paths.lock().unwrap().as_mut());
// Don't call delete if paths is empty
if paths.is_empty() {
return;
}

// We try our best to clean up fixtures, but won't panic if failed.
let _ = op.delete_iter(paths).await;
}
Expand Down

0 comments on commit a739a68

Please sign in to comment.