Skip to content

Commit 1d0f2b3

Browse files
committed
refactor(protocol-config): move test_logger macro to dedicated test module
1 parent cab317b commit 1d0f2b3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

internal/mithril-protocol-config/src/aggregator_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ mod tests {
287287
logging::MemoryDrainForTestInspector,
288288
};
289289

290-
use crate::test_tools::TestLogger;
290+
use crate::test::test_tools::TestLogger;
291291

292292
use super::*;
293293

internal/mithril-protocol-config/src/lib.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,3 @@ pub mod http_client;
66
pub mod interface;
77
pub mod model;
88
pub mod test;
9-
10-
#[cfg(test)]
11-
pub(crate) mod test_tools {
12-
mithril_common::define_test_logger!();
13-
}

internal/mithril-protocol-config/src/test/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@
55
//! This module provides in particular test doubles for the traits defined in this crate.
66
77
pub mod double;
8+
9+
#[cfg(test)]
10+
pub(crate) mod test_tools {
11+
mithril_common::define_test_logger!();
12+
}

0 commit comments

Comments
 (0)