Skip to content

Commit

Permalink
more debug-by-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
gadomski committed Nov 1, 2024
1 parent d400078 commit 238bfd1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/core/src/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ where

#[cfg(test)]
mod tests {
use stac_types::SelfHref;
use tempfile::TempDir;

use crate::{Catalog, Collection, Item, ItemCollection};
Expand Down Expand Up @@ -324,7 +325,9 @@ mod tests {
fn write() {
let tempdir = TempDir::new().unwrap();
let item = Item::new("an-id");
println!("writing");
super::write(tempdir.path().join("item.json"), item).unwrap();
println!("reading");
let item: Item = super::read(tempdir.path().join("item.json")).unwrap();
assert_eq!(item.id, "an-id");
}
Expand Down

0 comments on commit 238bfd1

Please sign in to comment.