Skip to content

Commit

Permalink
util: use ore execute_batch() in tests
Browse files Browse the repository at this point in the history
Change-Id: I05a28d50372b09dc6ad83d7b5e53352113c4f3b7
  • Loading branch information
vmiklos committed Sep 2, 2024
1 parent 7c2f1f5 commit e916dfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ fn test_build_reference_index() {
let ctx = context::tests::make_test_context().unwrap();
{
let conn = ctx.get_database_connection().unwrap();
conn.execute("delete from ref_housenumbers", []).unwrap();
conn.execute_batch("delete from ref_housenumbers").unwrap();
}
let refpath = ctx.get_abspath("workdir/refs/hazszamok_20190511.tsv");
build_reference_index(&ctx, &[refpath.clone()]).unwrap();
Expand Down Expand Up @@ -139,7 +139,7 @@ fn test_build_street_reference_index() {
let ctx = context::tests::make_test_context().unwrap();
{
let conn = ctx.get_database_connection().unwrap();
conn.execute("delete from ref_streets", []).unwrap();
conn.execute_batch("delete from ref_streets").unwrap();
}
let refpath = ctx.get_abspath("workdir/refs/utcak_20190514.tsv");
build_street_reference_index(&ctx, &refpath).unwrap();
Expand Down

0 comments on commit e916dfa

Please sign in to comment.