Skip to content

Commit 473a01d

Browse files
authored
Update transaction.rs
Missed rename on test
1 parent b3e28f5 commit 473a01d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/vector/transaction.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -263,11 +263,11 @@ mod tests {
263263
}
264264

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

270-
let res = ds.maybe_transaction(|d| {
270+
let res = ds.maybe_batch(|d| {
271271
let mut layer = d.layer(0).unwrap();
272272
layer.create_feature(polygon())
273273
});
@@ -276,11 +276,11 @@ mod tests {
276276
}
277277

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

283-
let res = ds.maybe_transaction(|d| {
283+
let res = ds.maybe_batch(|d| {
284284
let mut layer = d.layer(0).unwrap();
285285
layer.create_feature(polygon())
286286
});

0 commit comments

Comments
 (0)