Skip to content

Commit bdc900d

Browse files
committed
fix: Broken Windows CI
1 parent 3bd1ead commit bdc900d

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

‎raftify/src/storage/heed_storage/mod.rs‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,10 @@ mod test {
610610
}
611611

612612
fn teardown(tempdir: String) {
613-
fs::remove_dir_all(tempdir).expect("Failed to delete test directory");
613+
#[cfg(not(target_os = "windows"))]
614+
{
615+
std::fs::remove_dir_all(tempdir).expect("Failed to delete test directory");
616+
}
614617
}
615618

616619
#[test]

‎raftify/src/storage/rocksdb_storage/mod.rs‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,10 @@ mod test {
546546
}
547547

548548
fn teardown(tempdir: String) {
549-
fs::remove_dir_all(tempdir).expect("Failed to delete test directory");
549+
#[cfg(not(target_os = "windows"))]
550+
{
551+
std::fs::remove_dir_all(tempdir).expect("Failed to delete test directory");
552+
}
550553
}
551554

552555
#[test]

0 commit comments

Comments
 (0)