diff --git a/ethcore/src/test_helpers/test_client.rs b/ethcore/src/test_helpers/test_client.rs index 0f4cde783b8..bc800723394 100644 --- a/ethcore/src/test_helpers/test_client.rs +++ b/ethcore/src/test_helpers/test_client.rs @@ -81,6 +81,7 @@ use spec::{Spec, self}; use account_state::state::StateInfo; use state_db::StateDB; use trace::LocalizedTrace; +use stats::{PrometheusMetrics,prometheus}; /// Test client. pub struct TestBlockChainClient { @@ -995,3 +996,8 @@ impl client_traits::EngineClient for TestBlockChainClient { BlockChainClient::block_header(self, id) } } + +impl PrometheusMetrics for TestBlockChainClient { + fn prometheus_metrics(&self, r: &mut prometheus::Registry) { + } +} \ No newline at end of file diff --git a/rpc/src/v1/tests/helpers/sync_provider.rs b/rpc/src/v1/tests/helpers/sync_provider.rs index 27fd16ba7c0..97863669ee5 100644 --- a/rpc/src/v1/tests/helpers/sync_provider.rs +++ b/rpc/src/v1/tests/helpers/sync_provider.rs @@ -22,6 +22,7 @@ use parking_lot::RwLock; use network::client_version::ClientVersion; use futures::sync::mpsc; use sync::{SyncProvider, EthProtocolInfo, SyncStatus, PeerInfo, TransactionStats, SyncState}; +use stats::{PrometheusMetrics,prometheus}; /// TestSyncProvider config. pub struct Config { @@ -72,6 +73,11 @@ impl TestSyncProvider { } } +impl PrometheusMetrics for TestSyncProvider { + fn prometheus_metrics(&self, r: &mut prometheus::Registry) { + } +} + impl SyncProvider for TestSyncProvider { fn status(&self) -> SyncStatus { self.status.read().clone()