Skip to content

Commit

Permalink
Update transaction.rs
Browse files Browse the repository at this point in the history
Missed rename on test
  • Loading branch information
Atreyagaurav authored Nov 28, 2024
1 parent b3e28f5 commit 473a01d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/vector/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,11 @@ mod tests {
}

#[test]
fn test_maybe_transaction() {
fn test_maybe_batch() {
let (_temp_path, mut ds) = open_gpkg_for_update(&fixture("poly.gpkg"));
let orig_feature_count = ds.layer(0).unwrap().feature_count();

let res = ds.maybe_transaction(|d| {
let res = ds.maybe_batch(|d| {
let mut layer = d.layer(0).unwrap();
layer.create_feature(polygon())
});
Expand All @@ -276,11 +276,11 @@ mod tests {
}

#[test]
fn test_maybe_transaction_unsupported() {
fn test_maybe_batch_unsupported() {
let (_temp_path, mut ds) = open_dataset_for_update(&fixture("roads.geojson"));
let orig_feature_count = ds.layer(0).unwrap().feature_count();

let res = ds.maybe_transaction(|d| {
let res = ds.maybe_batch(|d| {
let mut layer = d.layer(0).unwrap();
layer.create_feature(polygon())
});
Expand Down

0 comments on commit 473a01d

Please sign in to comment.