Skip to content

Commit

Permalink
improve tracing so it does not break the test
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolay Ulmasov <[email protected]>
  • Loading branch information
r3stl355 committed Dec 29, 2023
1 parent e5ab0a4 commit 18bc6dc
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions crates/deltalake-core/tests/command_restore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,16 @@ async fn test_restore_by_datetime() -> Result<(), Box<dyn Error>> {
let naive = NaiveDateTime::from_timestamp_millis(timestamp).unwrap();
let datetime: DateTime<Utc> = Utc.from_utc_datetime(&naive);

let mut table_ts = history
let table_ts = history
.iter()
.map(|h| h.timestamp.unwrap())
.collect::<Vec<_>>();
table_ts.extend(vec![timestamp, datetime.timestamp_millis()]);
let random_ts = vec![0, 1, 2, 3, 4, 5, 6];
println!("--> Can i see this without nocapture?");
assert_eq!(table_ts, random_ts);
println!(
"--> All: {:?}, looking for: {} (from datetime: {})",
table_ts,
timestamp,
datetime.timestamp_millis()
);

let result = DeltaOps(table)
.restore()
Expand Down

0 comments on commit 18bc6dc

Please sign in to comment.