From 30bcd3b952bcd9ec86977ef9491b2fdafb895b91 Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Thu, 12 Dec 2024 22:28:44 +0000 Subject: [PATCH] Fix serial test attribute --- src/macros.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/macros.rs b/src/macros.rs index c86a35d..ebdb128 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -86,12 +86,14 @@ macro_rules! rpc_trait { #[cfg(test)] #[tokio::test] + #[serial_test::serial($trait_name)] async fn alpaca() -> eyre::Result<()> { $crate::test_utils::ConformU::AlpacaProtocol.run_proxy_test(DeviceType::$trait_name).await } #[cfg(test)] #[tokio::test] + #[serial_test::serial($trait_name)] async fn conformance() -> eyre::Result<()> { $crate::test_utils::ConformU::Conformance.run_proxy_test(DeviceType::$trait_name).await } @@ -125,7 +127,6 @@ macro_rules! rpc_trait { } ) => (paste::paste! { $(# $attr)* - #[cfg_attr(test, serial_test::serial($trait_name))] pub(crate) mod [<$trait_name:snake>] { use super::*;