From ee27253d70b5bb22c3a0075596af15c412a8cf7c Mon Sep 17 00:00:00 2001 From: Denis Cornehl Date: Sun, 18 Jun 2023 11:25:13 +0200 Subject: [PATCH] try other publisher id for the test --- src/docbuilder/rustwide_builder.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/docbuilder/rustwide_builder.rs b/src/docbuilder/rustwide_builder.rs index 1d37cb266..8b7983a5b 100644 --- a/src/docbuilder/rustwide_builder.rs +++ b/src/docbuilder/rustwide_builder.rs @@ -34,7 +34,6 @@ const USER_AGENT: &str = "docs.rs builder (https://github.com/rust-lang/docs.rs) const COMPONENTS: &[&str] = &["llvm-tools-preview", "rustc-dev", "rustfmt"]; const DUMMY_CRATE_NAME: &str = "empty-library"; const DUMMY_CRATE_VERSION: &str = "1.0.0"; -const DUMMY_CRATE_PUBLISHER_ID: &str = "2299951"; // pietroalbini #[derive(Debug)] pub enum PackageKind<'a> { @@ -959,6 +958,8 @@ mod tests { use crate::test::{assert_redirect, assert_success, wrapper}; use serde_json::Value; + const DUMMY_CRATE_PUBLISHER_ID: &str = "4825"; + #[test] #[ignore] fn test_build_crate() { @@ -1167,6 +1168,10 @@ mod tests { // cache dir doesn't contain doc output assert!(!expected_cache_dir.join("doc").exists()); + for chld in std::fs::read_dir(&expected_cache_dir)? { + dbg!(&chld); + } + // but seems to be a normal cargo target directory, // which also means that `build_package` actually used the // target directory, and it was moved into the cache afterwards.