mirror of
https://github.com/openai/codex.git
synced 2026-11-17 22:10:37 +00:00
Stabilize app-server and login integration tests (#62102)
## What changed - Run guardian action-budget permission hooks locally with a host-accessible working directory, and apply the test timeout to thread startup. - Use an empty probe file for the process-spawn handshake, removing the content assertion after file creation is detected. - Remove the explicit graceful shutdown from the config-server login/logout test. - Wait for fallback login cancellation to finish and assert that it returns an error, replacing the two-second timeout. GitOrigin-RevId: a696834162bf910bf114c35648366a4f94bb56f2
This commit is contained in:
@@ -658,9 +658,10 @@ async fn falls_back_to_registered_fallback_port_when_default_port_is_in_use() ->
|
||||
let actual_port = server.actual_port;
|
||||
let auth_url = server.auth_url.clone();
|
||||
server.cancel();
|
||||
let _ = tokio::time::timeout(Duration::from_secs(2), server.block_until_done())
|
||||
server
|
||||
.block_until_done()
|
||||
.await
|
||||
.expect("login server should shut down after cancel");
|
||||
.expect_err("cancelling the fallback login should not report success");
|
||||
|
||||
assert_eq!(actual_port, FALLBACK_LOGIN_PORT);
|
||||
assert!(auth_url.contains(&format!(
|
||||
|
||||
Reference in New Issue
Block a user