From 6797b7f8f4c67bec5a2a9a16fd6f75d14af07e73 Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Mon, 18 Mar 2024 14:12:18 +0100 Subject: [PATCH] add test feature for vcan --- tests/isotp_tests.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/isotp_tests.rs b/tests/isotp_tests.rs index 7508a5b..6d7ab22 100644 --- a/tests/isotp_tests.rs +++ b/tests/isotp_tests.rs @@ -1,3 +1,4 @@ +#![allow(dead_code, unused_imports)] use automotive::async_can::AsyncCanAdapter; use automotive::can::Identifier; use automotive::isotp::{IsoTPAdapter, IsoTPConfig}; @@ -36,13 +37,14 @@ async fn isotp_echo(msg_len: usize) { } -// #[cfg(feature = "test_vcan")] +#[cfg(feature = "test_vcan")] #[tokio::test] #[serial_test::serial] async fn isotp_test_single_frame() { isotp_echo(7).await; } +#[cfg(feature = "test_vcan")] #[tokio::test] #[serial_test::serial] async fn isotp_test_flow_control() {