Skip to content

Commit

Permalink
Remove simtest lints (#18587)
Browse files Browse the repository at this point in the history
  • Loading branch information
mystenmark authored Jul 10, 2024
1 parent 2170693 commit b9f0721
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions consensus/core/src/network/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ pub(crate) struct NetworkMetrics {
pub(crate) network_type: IntGaugeVec,
pub(crate) inbound: Arc<NetworkRouteMetrics>,
pub(crate) outbound: Arc<NetworkRouteMetrics>,
#[cfg_attr(msim, allow(dead_code))]
pub(crate) tcp_connection_metrics: Arc<TcpConnectionMetrics>,
pub(crate) quinn_connection_metrics: Arc<QuinnConnectionMetrics>,
}
Expand All @@ -36,6 +37,7 @@ impl NetworkMetrics {
}
}

#[cfg_attr(msim, allow(dead_code))]
pub(crate) struct TcpConnectionMetrics {
/// Send buffer size of consensus TCP socket.
pub(crate) socket_send_buffer_size: IntGauge,
Expand Down
2 changes: 1 addition & 1 deletion consensus/core/src/network/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub(crate) mod connection_monitor;
pub(crate) mod epoch_filter;
pub(crate) mod metrics;
mod metrics_layer;
#[cfg(test)]
#[cfg(all(test, not(msim)))]
mod network_tests;
#[cfg(test)]
pub(crate) mod test_network;
Expand Down
1 change: 1 addition & 0 deletions consensus/core/src/network/test_network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ impl TestService {
}
}

#[cfg_attr(msim, allow(dead_code))]
pub(crate) fn add_own_blocks(&mut self, blocks: Vec<Bytes>) {
self.own_blocks.extend(blocks);
}
Expand Down
2 changes: 0 additions & 2 deletions crates/sui-e2e-tests/tests/reconfiguration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -713,8 +713,6 @@ async fn do_test_reconfig_with_committee_change_stress() {
#[cfg(msim)]
#[sim_test]
async fn test_epoch_flag_upgrade() {
use std::any;

use std::sync::Mutex;
use sui_core::authority::epoch_start_configuration::EpochFlag;
use sui_core::authority::epoch_start_configuration::EpochStartConfigTrait;
Expand Down

0 comments on commit b9f0721

Please sign in to comment.