Skip to content

Commit 70e1362

Browse files
committed
fix archive-download endpoint tests dependency on config
1 parent 4e3e136 commit 70e1362

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/web/rustdoc.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2549,6 +2549,9 @@ mod test {
25492549
#[test]
25502550
fn download_semver() {
25512551
wrapper(|env| {
2552+
env.override_config(|config| {
2553+
config.s3_static_root_path = "https://static.docs.rs".into()
2554+
});
25522555
env.fake_release()
25532556
.name("dummy")
25542557
.version("0.1.0")
@@ -2572,6 +2575,9 @@ mod test {
25722575
#[test]
25732576
fn download_specific_version() {
25742577
wrapper(|env| {
2578+
env.override_config(|config| {
2579+
config.s3_static_root_path = "https://static.docs.rs".into()
2580+
});
25752581
env.fake_release()
25762582
.name("dummy")
25772583
.version("0.1.0")
@@ -2599,6 +2605,9 @@ mod test {
25992605
#[test]
26002606
fn download_latest_version() {
26012607
wrapper(|env| {
2608+
env.override_config(|config| {
2609+
config.s3_static_root_path = "https://static.docs.rs".into()
2610+
});
26022611
env.fake_release()
26032612
.name("dummy")
26042613
.version("0.1.0")

0 commit comments

Comments
 (0)