From 247c10acd55ab3ee4a8f1ca9adf8cff49d42ff54 Mon Sep 17 00:00:00 2001 From: viyatb-oai Date: Tue, 9 Jun 2026 15:20:36 -0700 Subject: [PATCH] style: format Noise runtime tests Co-authored-by: Codex --- codex-rs/exec-server/src/noise_relay/environment_tests.rs | 3 +-- codex-rs/exec-server/src/remote/noise_tests.rs | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/codex-rs/exec-server/src/noise_relay/environment_tests.rs b/codex-rs/exec-server/src/noise_relay/environment_tests.rs index ac42543fa4..19e29e6176 100644 --- a/codex-rs/exec-server/src/noise_relay/environment_tests.rs +++ b/codex-rs/exec-server/src/noise_relay/environment_tests.rs @@ -82,8 +82,7 @@ async fn pending_harness_key_validation_does_not_block_new_handshakes() -> Resul )); for stream_id in ["stream-1", "stream-2"] { - let prologue = - noise_channel_prologue(ENVIRONMENT_ID, EXECUTOR_REGISTRATION_ID, stream_id)?; + let prologue = noise_channel_prologue(ENVIRONMENT_ID, EXECUTOR_REGISTRATION_ID, stream_id)?; let (_handshake, request) = InitiatorHandshake::start( &harness_identity, &environment_identity.public_key(), diff --git a/codex-rs/exec-server/src/remote/noise_tests.rs b/codex-rs/exec-server/src/remote/noise_tests.rs index c04bf798ec..792a93bf32 100644 --- a/codex-rs/exec-server/src/remote/noise_tests.rs +++ b/codex-rs/exec-server/src/remote/noise_tests.rs @@ -141,10 +141,8 @@ async fn validate_harness_key_does_not_expose_error_body() { #[test] fn noise_environment_id_validation_rejects_path_injection() { - validate_environment_id( - "ccarenv_b64_Y2Fhcy1zdGFnaW5nLWV4ZWN1dG9yLWVudmlyb25tZW50LTE", - ) - .expect("valid cloud environment id"); + validate_environment_id("ccarenv_b64_Y2Fhcy1zdGFnaW5nLWV4ZWN1dG9yLWVudmlyb25tZW50LTE") + .expect("valid cloud environment id"); let error = validate_environment_id("ccarenv_b64_valid/../../status") .expect_err("path delimiter must not reach an authenticated registry request");