mirror of
https://github.com/openai/codex.git
synced 2026-06-01 19:02:59 +00:00
test(attestation): trim duplicate unit coverage
Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -162,25 +162,14 @@ fn app_server_attestation_provider(
|
||||
AttestationProvider::new(move || {
|
||||
let outgoing = outgoing.clone();
|
||||
let attestation_connection_ids = attestation_connection_ids.clone();
|
||||
Box::pin(request_attestation_header_value(
|
||||
Box::pin(request_attestation_header_value_with_timeout(
|
||||
outgoing,
|
||||
attestation_connection_ids,
|
||||
ATTESTATION_GENERATE_TIMEOUT,
|
||||
))
|
||||
})
|
||||
}
|
||||
|
||||
async fn request_attestation_header_value(
|
||||
outgoing: Arc<OutgoingMessageSender>,
|
||||
attestation_connection_ids: Arc<Mutex<HashSet<ConnectionId>>>,
|
||||
) -> Option<String> {
|
||||
request_attestation_header_value_with_timeout(
|
||||
outgoing,
|
||||
attestation_connection_ids,
|
||||
ATTESTATION_GENERATE_TIMEOUT,
|
||||
)
|
||||
.await
|
||||
}
|
||||
|
||||
async fn request_attestation_header_value_with_timeout(
|
||||
outgoing: Arc<OutgoingMessageSender>,
|
||||
attestation_connection_ids: Arc<Mutex<HashSet<ConnectionId>>>,
|
||||
|
||||
Reference in New Issue
Block a user