Skip to content

Commit

Permalink
chore: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr committed Jan 11, 2024
1 parent 10747d2 commit 621e9e5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
10 changes: 9 additions & 1 deletion rust/cubestore/cubestore-sql-tests/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,19 @@ pub fn run_sql_tests(
ignore: false,
should_panic: ShouldPanic::No,
ignore_message: None,
source_file: "",
start_line: 0,
start_col: 0,
end_line: 0,
compile_fail: false,
no_run: false,
test_type: TestType::IntegrationTest,
end_col: 0,
},
testfn: DynTestFn(Box::new(move || runner(name, test_fn))),
testfn: DynTestFn(Box::new(move || {
runner(name, test_fn);
Ok(())
})),
}
})
.collect();
Expand Down
2 changes: 1 addition & 1 deletion rust/cubestore/cubestore-sql-tests/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6603,7 +6603,7 @@ async fn assert_limit_pushdown(
async fn cache_incr(service: Box<dyn SqlClient>) {
let query = r#"CACHE INCR "prefix:key""#;

let r = service.exec_query(query.clone()).await.unwrap();
let r = service.exec_query(query).await.unwrap();

assert_eq!(
r.get_rows(),
Expand Down
6 changes: 3 additions & 3 deletions rust/cubestore/cubestore/src/sql/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2082,7 +2082,7 @@ mod tests {
let store_path = path.to_string() + &"_store".to_string();
let remote_store_path = path.to_string() + &"remote_store".to_string();

let _ = fs::remove_dir_all(path.clone());
let _ = fs::remove_dir_all(path);
let _ = fs::remove_dir_all(store_path.clone());
let _ = fs::remove_dir_all(remote_store_path.clone());

Expand Down Expand Up @@ -2158,7 +2158,7 @@ mod tests {
let store_path = path.to_string() + &"_store".to_string();
let remote_store_path = path.to_string() + &"remote_store".to_string();

let _ = fs::remove_dir_all(path.clone());
let _ = fs::remove_dir_all(path);
let _ = fs::remove_dir_all(store_path.clone());
let _ = fs::remove_dir_all(remote_store_path.clone());

Expand Down Expand Up @@ -2264,7 +2264,7 @@ mod tests {
let store_path = path.to_string() + &"_store".to_string();
let remote_store_path = path.to_string() + &"remote_store".to_string();

let _ = fs::remove_dir_all(path.clone());
let _ = fs::remove_dir_all(path);
let _ = fs::remove_dir_all(store_path.clone());
let _ = fs::remove_dir_all(remote_store_path.clone());

Expand Down
2 changes: 1 addition & 1 deletion rust/cubestore/cubestore/src/store/compaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1769,7 +1769,7 @@ mod tests {
assert_eq!(9, chunks_row_count);

let rows = (0..9)
.map(|i| Row::new(TableValue::from_columns(&batch.columns().clone(), i)))
.map(|i| Row::new(TableValue::from_columns(&batch.columns(), i)))
.collect::<Vec<_>>();

let expected = vec![
Expand Down

0 comments on commit 621e9e5

Please sign in to comment.