Fix absolute path error on windows
This commit is contained in:
parent
784e074795
commit
caf72c9aef
|
@ -24,7 +24,7 @@ use log::error;
|
|||
use regex::Regex;
|
||||
|
||||
lazy_static! {
|
||||
static ref ABSOLUTE_PATH: Regex = Regex::new(r"(?m)^([a-zA-Z]:/|/).*$").unwrap();
|
||||
static ref ABSOLUTE_PATH: Regex = Regex::new(r"(?m)^([a-zA-Z]:\\|/).*$").unwrap();
|
||||
}
|
||||
|
||||
pub fn calculate_paths<'a>(
|
||||
|
|
|
@ -98,7 +98,7 @@ mod tests {
|
|||
});
|
||||
|
||||
// TODO: avoid delay and change the IPC code so that we can wait for the IPC
|
||||
//std::thread::sleep(std::time::Duration::from_secs(1));
|
||||
std::thread::sleep(std::time::Duration::from_millis(300));
|
||||
|
||||
let client = client::<Event>("testespansoipc", &std::env::temp_dir()).unwrap();
|
||||
client.send(Event::Foo("hello".to_string())).unwrap();
|
||||
|
|
Loading…
Reference in New Issue
Block a user