Skip to content

Commit

Permalink
try other publisher id for the test
Browse files Browse the repository at this point in the history
  • Loading branch information
syphar committed Jun 18, 2023
1 parent c3f4901 commit ee27253
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/docbuilder/rustwide_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down Expand Up @@ -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() {
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit ee27253

Please sign in to comment.