From e27a9a317c694bbb1f470e4cc62e268fd1bae686 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Sun, 12 Jan 2020 19:00:55 -0500 Subject: [PATCH] Driver error message now consistent on Windows --- aeron-rs/src/driver.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/aeron-rs/src/driver.rs b/aeron-rs/src/driver.rs index a616f0d..2a54e3a 100644 --- a/aeron-rs/src/driver.rs +++ b/aeron-rs/src/driver.rs @@ -190,12 +190,7 @@ mod tests { // cause an issue because the new media driver must wait for a heartbeat timeout. let driver_res = DriverContext::default().set_aeron_dir(&dir).build(); - // TODO: Why is the error message behavior different on Windows? - let expected_message = if cfg!(target_os = "windows") { - String::new() - } else { - format!("could not recreate aeron dir {}: ", dir.display()) - }; + let expected_message = format!("could not recreate aeron dir {}: ", dir.display()); assert!(driver_res.is_err()); assert_eq!(