We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5751e17 commit fbe7ac2Copy full SHA for fbe7ac2
crates/cargo-test-support/src/registry.rs
@@ -1011,7 +1011,8 @@ impl HttpServer {
1011
1012
pub fn check_authorized_publish(&self, req: &Request) -> Response {
1013
if let Some(body) = &req.body {
1014
- // 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
1015
+ // so tests can verify publishes made to either registry type.
1016
let path = self.api_path.join("api/v1/crates/new");
1017
t!(fs::create_dir_all(path.parent().unwrap()));
1018
t!(fs::write(&path, body));
0 commit comments