Skip to content

Commit 8dab82b

Browse files
committed
Fix a typo
1 parent e7f67cf commit 8dab82b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datastore/src/test/java/io/spine/server/storage/datastore/TransactionWrapperTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ void lookup() {
294294
);
295295
try (TransactionWrapper tx = datastore.newTransaction()) {
296296
List<Entity> readEntities = tx.lookup(keys);
297-
tx.close();
297+
tx.commit();
298298
assertThat(readEntities)
299299
.containsExactly(firstEntity, null, secondEntity);
300300
}
@@ -318,7 +318,7 @@ void lookupBulk() {
318318
.collect(toList());
319319
try (TransactionWrapper tx = datastore.newTransaction()) {
320320
List<Entity> readEntities = tx.lookup(keys);
321-
tx.close();
321+
tx.commit();
322322
assertThat(readEntities)
323323
.containsExactlyElementsIn(entities);
324324
}

0 commit comments

Comments
 (0)