Skip to content

Commit

Permalink
Fix time_travel test paths
Browse files Browse the repository at this point in the history
  • Loading branch information
rtyler committed Dec 29, 2023
1 parent bbe18c4 commit 83e58c5
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions crates/deltalake-core/tests/time_travel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::path::Path;
#[tokio::test]
async fn time_travel_by_ds() {
// git does not preserve mtime, so we need to manually set it in the test
let log_dir = "./tests/data/simple_table/_delta_log";
let log_dir = "../deltalake-test/tests/data/simple_table/_delta_log";
let log_mtime_pair = vec![
("00000000000000000000.json", "2020-05-01T22:47:31-07:00"),
("00000000000000000001.json", "2020-05-02T22:47:31-07:00"),
Expand All @@ -18,7 +18,7 @@ async fn time_travel_by_ds() {
}

let mut table = deltalake_core::open_table_with_ds(
"./tests/data/simple_table",
"../deltalake-test/tests/data/simple_table",
"2020-05-01T00:47:31-07:00",
)
.await
Expand All @@ -27,55 +27,55 @@ async fn time_travel_by_ds() {
assert_eq!(table.version(), 0);

table = deltalake_core::open_table_with_ds(
"./tests/data/simple_table",
"../deltalake-test/tests/data/simple_table",
"2020-05-02T22:47:31-07:00",
)
.await
.unwrap();
assert_eq!(table.version(), 1);

table = deltalake_core::open_table_with_ds(
"./tests/data/simple_table",
"../deltalake-test/tests/data/simple_table",
"2020-05-02T23:47:31-07:00",
)
.await
.unwrap();
assert_eq!(table.version(), 1);

table = deltalake_core::open_table_with_ds(
"./tests/data/simple_table",
"../deltalake-test/tests/data/simple_table",
"2020-05-03T22:47:31-07:00",
)
.await
.unwrap();
assert_eq!(table.version(), 2);

table = deltalake_core::open_table_with_ds(
"./tests/data/simple_table",
"../deltalake-test/tests/data/simple_table",
"2020-05-04T22:47:31-07:00",
)
.await
.unwrap();
assert_eq!(table.version(), 3);

table = deltalake_core::open_table_with_ds(
"./tests/data/simple_table",
"../deltalake-test/tests/data/simple_table",
"2020-05-05T21:47:31-07:00",
)
.await
.unwrap();
assert_eq!(table.version(), 3);

table = deltalake_core::open_table_with_ds(
"./tests/data/simple_table",
"../deltalake-test/tests/data/simple_table",
"2020-05-05T22:47:31-07:00",
)
.await
.unwrap();
assert_eq!(table.version(), 4);

table = deltalake_core::open_table_with_ds(
"./tests/data/simple_table",
"../deltalake-test/tests/data/simple_table",
"2020-05-25T22:47:31-07:00",
)
.await
Expand Down

0 comments on commit 83e58c5

Please sign in to comment.