Skip to content

Commit 238fa32

Browse files
committed
og_image: Use from_environment() for tests
1 parent 57c3a6a commit 238fa32

File tree

1 file changed

+2
-1
lines changed
  • crates/crates_io_og_image/src

1 file changed

+2
-1
lines changed

crates/crates_io_og_image/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,8 @@ mod tests {
392392
return None;
393393
}
394394

395-
let generator = OgImageGenerator::default();
395+
let generator =
396+
OgImageGenerator::from_environment().expect("Failed to create OgImageGenerator");
396397

397398
let temp_file = generator
398399
.generate(data)

0 commit comments

Comments
 (0)