Skip to content

Commit

Permalink
add test feature for vcan
Browse files Browse the repository at this point in the history
  • Loading branch information
pd0wm committed Mar 18, 2024
1 parent 77a4f43 commit 6797b7f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/isotp_tests.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(dead_code, unused_imports)]
use automotive::async_can::AsyncCanAdapter;
use automotive::can::Identifier;
use automotive::isotp::{IsoTPAdapter, IsoTPConfig};
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 6797b7f

Please sign in to comment.