Skip to content

Commit fbe7ac2

Browse files
committed
Update comment
1 parent 5751e17 commit fbe7ac2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/cargo-test-support/src/registry.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,8 @@ impl HttpServer {
10111011

10121012
pub fn check_authorized_publish(&self, req: &Request) -> Response {
10131013
if let Some(body) = &req.body {
1014-
// Save the body to a file so we can inspect it in the test.
1014+
// Mimic the publish behavior for local registries by writing out the request
1015+
// so tests can verify publishes made to either registry type.
10151016
let path = self.api_path.join("api/v1/crates/new");
10161017
t!(fs::create_dir_all(path.parent().unwrap()));
10171018
t!(fs::write(&path, body));

0 commit comments

Comments
 (0)