Skip to content

Commit

Permalink
Fix serial test attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
RReverser committed Dec 12, 2024
1 parent 48f3a1b commit 30bcd3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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::*;

Expand Down

0 comments on commit 30bcd3b

Please sign in to comment.