diff --git a/lib/modules/blockchain/blockchain/tests/revert_blocks.rs b/lib/modules/blockchain/blockchain/tests/revert_blocks.rs
index 2e5a77fd383d4516b5340b3b81372e3bfe100d5b..d966a7b661a275db6533dfb7cadcc4b688bb34ba 100644
--- a/lib/modules/blockchain/blockchain/tests/revert_blocks.rs
+++ b/lib/modules/blockchain/blockchain/tests/revert_blocks.rs
@@ -32,6 +32,7 @@ use durs_network::requests::OldNetworkRequest;
 use pretty_assertions::assert_eq;
 use std::sync::mpsc::{channel, Receiver, Sender};
 
+#[cfg(unix)]
 #[test]
 fn test_revert_block() {
     // Init test