1
0
mirror of https://github.com/bspeice/aeron-rs synced 2024-12-21 21:38:09 -05:00

Driver error message now consistent on Windows

This commit is contained in:
Bradlee Speice 2020-01-12 19:00:55 -05:00
parent 80c1aed824
commit e27a9a317c

View File

@ -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!(