mirror of
https://github.com/openai/codex.git
synced 2026-11-20 22:40:37 +00:00
Fix analytics test lint comments
This commit is contained in:
@@ -156,7 +156,6 @@ async fn wait_for_matching_analytics_event(
|
||||
tokio::time::sleep(Duration::from_millis(25)).await;
|
||||
continue;
|
||||
};
|
||||
let mut matching_events = Vec::new();
|
||||
for request in &requests {
|
||||
if request.method != "POST"
|
||||
|| request.url.path() != "/codex/analytics-events/events"
|
||||
|
||||
@@ -1096,8 +1096,13 @@ async fn spawned_child_turn_analytics_carry_direct_parent_turn_id() -> Result<()
|
||||
})
|
||||
.await??;
|
||||
|
||||
let events =
|
||||
wait_for_analytics_events(&server, DEFAULT_READ_TIMEOUT, "codex_turn_event", 2).await?;
|
||||
let events = wait_for_analytics_events(
|
||||
&server,
|
||||
DEFAULT_READ_TIMEOUT,
|
||||
"codex_turn_event",
|
||||
/*expected_len*/ 2,
|
||||
)
|
||||
.await?;
|
||||
let parent_turn_event = events
|
||||
.iter()
|
||||
.find(|event| {
|
||||
|
||||
@@ -87,14 +87,7 @@ pub async fn user_input_or_turn(
|
||||
parent_turn_id: Option<String>,
|
||||
client_user_message_id: Option<String>,
|
||||
) {
|
||||
user_input_or_turn_inner(
|
||||
sess,
|
||||
sub_id,
|
||||
op,
|
||||
parent_turn_id,
|
||||
client_user_message_id,
|
||||
)
|
||||
.await;
|
||||
user_input_or_turn_inner(sess, sub_id, op, parent_turn_id, client_user_message_id).await;
|
||||
}
|
||||
|
||||
pub async fn update_thread_settings(
|
||||
|
||||
Reference in New Issue
Block a user