mirror of
https://github.com/openai/codex.git
synced 2026-12-01 00:20:48 +00:00
codex: wait longer before remote exec-server PTY writes (#16747)
This commit is contained in:
@@ -165,7 +165,12 @@ async fn assert_exec_process_write_then_read(use_remote: bool) -> Result<()> {
|
||||
|
||||
let StartedExecProcess { process } = session;
|
||||
let wake_rx = process.subscribe_wake();
|
||||
tokio::time::sleep(Duration::from_millis(200)).await;
|
||||
let startup_delay = if use_remote {
|
||||
Duration::from_secs(1)
|
||||
} else {
|
||||
Duration::from_millis(200)
|
||||
};
|
||||
tokio::time::sleep(startup_delay).await;
|
||||
process.write(b"hello\n".to_vec()).await?;
|
||||
let (output, exit_code, closed) = collect_process_output_from_reads(process, wake_rx).await?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user