diff --git a/src/meta/src/rpc/election/sql.rs b/src/meta/src/rpc/election/sql.rs index 4d4124036bda9..b6bd02b179c26 100644 --- a/src/meta/src/rpc/election/sql.rs +++ b/src/meta/src/rpc/election/sql.rs @@ -535,6 +535,7 @@ where } } +#[cfg(not(madsim))] #[cfg(test)] mod tests { use std::sync::Arc;