Fix failing CI (#39)

* Ignore proc_run tests that are failing due to WSL not using windows path

* Extend time for some shutdown task tests
pull/47/head
Chip Senkbeil 3 years ago committed by GitHub
parent cf95181418
commit c5cbc90726
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2089,13 +2089,12 @@ mod tests {
);
}
// NOTE: Ignoring on windows because it's using WSL which wants a Linux path
// with / but thinks it's on windows and is providing \
#[tokio::test]
#[cfg_attr(windows, ignore)]
async fn proc_run_should_send_back_stdout_periodically_when_available() {
let (conn_id, state, tx, mut rx) = setup(1);
println!(
"ECHO_ARGS_TO_STDOUT_SH: {:?}",
ECHO_ARGS_TO_STDOUT_SH.to_str()
);
// Run a program that echoes to stdout
let req = Request::new(
@ -2155,7 +2154,10 @@ mod tests {
assert!(got_done, "Missing done response");
}
// NOTE: Ignoring on windows because it's using WSL which wants a Linux path
// with / but thinks it's on windows and is providing \
#[tokio::test]
#[cfg_attr(windows, ignore)]
async fn proc_run_should_send_back_stderr_periodically_when_available() {
let (conn_id, state, tx, mut rx) = setup(1);
@ -2217,7 +2219,10 @@ mod tests {
assert!(got_done, "Missing done response");
}
// NOTE: Ignoring on windows because it's using WSL which wants a Linux path
// with / but thinks it's on windows and is providing \
#[tokio::test]
#[cfg_attr(windows, ignore)]
async fn proc_run_should_clear_process_from_state_when_done() {
let (conn_id, state, tx, mut rx) = setup(1);
@ -2425,7 +2430,10 @@ mod tests {
);
}
// NOTE: Ignoring on windows because it's using WSL which wants a Linux path
// with / but thinks it's on windows and is providing \
#[tokio::test]
#[cfg_attr(windows, ignore)]
async fn proc_stdin_should_send_ok_on_success_and_properly_send_stdin_to_process() {
let (conn_id, state, tx, mut rx) = setup(1);

@ -164,12 +164,12 @@ mod tests {
"Shutdown task unexpectedly completed"
);
time::sleep(Duration::from_millis(50)).await;
assert!(
futures::poll!(task).is_ready(),
"Shutdown task unexpectedly pending"
);
tokio::select! {
_ = task => {}
_ = time::sleep(Duration::from_secs(1)) => {
panic!("Shutdown task unexpectedly pending");
}
}
}
#[tokio::test]
@ -189,12 +189,13 @@ mod tests {
);
task.tracker().lock().await.decrement();
time::sleep(Duration::from_millis(50)).await;
assert!(
futures::poll!(task).is_ready(),
"Shutdown task unexpectedly pending"
);
tokio::select! {
_ = task => {}
_ = time::sleep(Duration::from_secs(1)) => {
panic!("Shutdown task unexpectedly pending");
}
}
}
#[tokio::test]

Loading…
Cancel
Save