mirror of
https://github.com/openai/codex.git
synced 2026-11-22 23:00:42 +00:00
[codex] satisfy ingress argument lint
This commit is contained in:
@@ -83,7 +83,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn listener_exports_inherited_fd_to_child_env() {
|
||||
let listener = IngressListener::bind(0).expect("bind ingress listener");
|
||||
let listener = IngressListener::bind(/*port*/ 0).expect("bind ingress listener");
|
||||
let mut env = HashMap::new();
|
||||
|
||||
listener.add_to_child_env(&mut env);
|
||||
@@ -96,7 +96,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn listener_keeps_close_on_exec_in_parent() {
|
||||
let listener = IngressListener::bind(0).expect("bind ingress listener");
|
||||
let listener = IngressListener::bind(/*port*/ 0).expect("bind ingress listener");
|
||||
|
||||
assert_ne!(fd_flags(listener.inherited_fd()) & libc::FD_CLOEXEC, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user