From 3c1a8b3de1814d3dc3f49bd3f846255f0964c956 Mon Sep 17 00:00:00 2001 From: Dimos Raptis Date: Mon, 11 Mar 2019 11:56:57 +0000 Subject: [PATCH] Remove redundant transaction --- .../persistence/AppendOnlyPersistentMapNonConcurrentTest.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/node/src/test/kotlin/net/corda/node/services/persistence/AppendOnlyPersistentMapNonConcurrentTest.kt b/node/src/test/kotlin/net/corda/node/services/persistence/AppendOnlyPersistentMapNonConcurrentTest.kt index 85851c5e8f..47fe441bc4 100644 --- a/node/src/test/kotlin/net/corda/node/services/persistence/AppendOnlyPersistentMapNonConcurrentTest.kt +++ b/node/src/test/kotlin/net/corda/node/services/persistence/AppendOnlyPersistentMapNonConcurrentTest.kt @@ -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")