Skip to content

Commit

Permalink
fix: Broken Windows CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jopemachine committed Oct 9, 2024
1 parent 3bd1ead commit bdc900d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion raftify/src/storage/heed_storage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,10 @@ mod test {
}

fn teardown(tempdir: String) {
fs::remove_dir_all(tempdir).expect("Failed to delete test directory");
#[cfg(not(target_os = "windows"))]
{
std::fs::remove_dir_all(tempdir).expect("Failed to delete test directory");
}
}

#[test]
Expand Down
5 changes: 4 additions & 1 deletion raftify/src/storage/rocksdb_storage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,10 @@ mod test {
}

fn teardown(tempdir: String) {
fs::remove_dir_all(tempdir).expect("Failed to delete test directory");
#[cfg(not(target_os = "windows"))]
{
std::fs::remove_dir_all(tempdir).expect("Failed to delete test directory");
}
}

#[test]
Expand Down

0 comments on commit bdc900d

Please sign in to comment.