Remove redundant transaction

This commit is contained in:
Dimos Raptis 2019-03-11 11:56:57 +00:00 committed by Mike Hearn
parent 5f7f809084
commit 3c1a8b3de1

View File

@ -55,10 +55,7 @@ class AppendOnlyPersistentMapNonConcurrentTest {
@Test
fun `map prevents duplicates, when key has been evicted from cache, but present in database`() {
val map = database.transaction {
createMap(1)
}
val map = createMap(1)
database.transaction {
map.addWithDuplicatesAllowed(1, "1")