Skip to content

Commit

Permalink
Fix after reverting unwanted code added after 0.15.2 tag
Browse files Browse the repository at this point in the history
  • Loading branch information
sophie-cluml committed Jan 9, 2024
1 parent a1374b6 commit 6293edc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/ingest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,15 +195,15 @@ mod tests {
let nsec = 123;
let ndt = NaiveDateTime::from_timestamp_opt(sec, nsec).unwrap();

let ts = ndt.timestamp_nanos();
let ts = ndt.timestamp_nanos_opt().unwrap();
let ts_fmt = super::convert_time_format(ts);
assert_eq!(ts_fmt, "2.000000123");

let sec = -1;
let nsec = 0;
let ndt = NaiveDateTime::from_timestamp_opt(sec, nsec).unwrap();

let ts = ndt.timestamp_nanos();
let ts = ndt.timestamp_nanos_opt().unwrap();
let ts_fmt = super::convert_time_format(ts);
assert_eq!(ts_fmt, "-1.000000000");
}
Expand Down
1 change: 0 additions & 1 deletion src/publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,6 @@ mod tests {
orig_mime_types: Vec::new(),
resp_filenames: Vec::new(),
resp_mime_types: Vec::new(),
post_body: Vec::new(),
};
let raw_event = bincode::serialize(&http).unwrap();
let source = bincode::serialize(&"hello").unwrap();
Expand Down

0 comments on commit 6293edc

Please sign in to comment.