From fbe7ac25714b05a2b6d73a4f981dfe8f0d29b92d Mon Sep 17 00:00:00 2001 From: hi-rustin Date: Fri, 24 Feb 2023 09:01:46 +0800 Subject: [PATCH] Update comment --- crates/cargo-test-support/src/registry.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/cargo-test-support/src/registry.rs b/crates/cargo-test-support/src/registry.rs index d4a4a7ee673..7b1dc541a42 100644 --- a/crates/cargo-test-support/src/registry.rs +++ b/crates/cargo-test-support/src/registry.rs @@ -1011,7 +1011,8 @@ impl HttpServer { pub fn check_authorized_publish(&self, req: &Request) -> Response { if let Some(body) = &req.body { - // Save the body to a file so we can inspect it in the test. + // Mimic the publish behavior for local registries by writing out the request + // so tests can verify publishes made to either registry type. let path = self.api_path.join("api/v1/crates/new"); t!(fs::create_dir_all(path.parent().unwrap())); t!(fs::write(&path, body));