Skip to content

Commit

Permalink
Merge pull request #58 from woelfman/master
Browse files Browse the repository at this point in the history
Update the default tty on unix
  • Loading branch information
estokes authored Aug 28, 2022
2 parents 394d9f8 + 548ddda commit fa33ce8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/test_serialstream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ use tokio::{
use tokio_serial::SerialPortBuilderExt;

#[cfg(unix)]
const DEFAULT_TEST_PORT_NAMES: &str = "/dev/ttyUSB0;/dev/ttyUSB1";
const DEFAULT_TEST_PORT_NAMES: &str = concat!(
env!("CARGO_TARGET_TMPDIR"),
"/ttyUSB0;",
env!("CARGO_TARGET_TMPDIR"),
"/ttyUSB1"
);
#[cfg(not(unix))]
const DEFAULT_TEST_PORT_NAMES: &str = "COM10;COM11";

Expand Down

0 comments on commit fa33ce8

Please sign in to comment.