Просмотр исходного кода

explorerd: guard test_utils module with #[cfg(test)]

Adds a `#[cfg(test)]` attribute to the `test_utils` module in `main.rs` to ensure it is only included during testing.
kalm 1 год назад
Родитель
Сommit
47b3add0ef
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      bin/explorer/explorerd/src/main.rs

+ 1 - 0
bin/explorer/explorerd/src/main.rs

@@ -54,6 +54,7 @@ mod store;
 mod error;
 
 /// Test utilities used for unit and integration testing
+#[cfg(test)]
 mod test_utils;
 
 const CONFIG_FILE: &str = "explorerd_config.toml";