[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] 04/08: Tests environment.
From: |
gnunet |
Subject: |
[libeufin] 04/08: Tests environment. |
Date: |
Wed, 08 Feb 2023 14:32:20 +0100 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
commit 38e336736a10a7fd34be9cea6f30f2f0dc38bcb4
Author: MS <ms@taler.net>
AuthorDate: Fri Feb 3 17:53:51 2023 +0100
Tests environment.
Setting TRANSACTION_SERIALIZABLE in the database,
like Nexus does.
---
nexus/src/test/kotlin/MakeEnv.kt | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/nexus/src/test/kotlin/MakeEnv.kt b/nexus/src/test/kotlin/MakeEnv.kt
index b8adad2d..52e5dd35 100644
--- a/nexus/src/test/kotlin/MakeEnv.kt
+++ b/nexus/src/test/kotlin/MakeEnv.kt
@@ -1,6 +1,7 @@
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import org.jetbrains.exposed.sql.Database
import org.jetbrains.exposed.sql.statements.api.ExposedBlob
+import org.jetbrains.exposed.sql.transactions.TransactionManager
import org.jetbrains.exposed.sql.transactions.transaction
import org.jetbrains.exposed.sql.transactions.transactionManager
import tech.libeufin.nexus.*
@@ -63,7 +64,7 @@ fun withTestDatabase(f: () -> Unit) {
}
}
Database.connect("jdbc:sqlite:$TEST_DB_FILE")
- // ).transactionManager.defaultIsolationLevel =
java.sql.Connection.TRANSACTION_SERIALIZABLE
+ TransactionManager.manager.defaultIsolationLevel =
java.sql.Connection.TRANSACTION_SERIALIZABLE
dbDropTables(TEST_DB_CONN)
tech.libeufin.sandbox.dbDropTables(TEST_DB_CONN)
try { f() }
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libeufin] branch master updated (64c2d251 -> 6726bb63), gnunet, 2023/02/08
- [libeufin] 05/08: background jobs, gnunet, 2023/02/08
- [libeufin] 02/08: EBICS subscriber creation., gnunet, 2023/02/08
- [libeufin] 01/08: help message, gnunet, 2023/02/08
- [libeufin] 03/08: comments, gnunet, 2023/02/08
- [libeufin] 04/08: Tests environment.,
gnunet <=
- [libeufin] 06/08: implementing #7521, gnunet, 2023/02/08
- [libeufin] 07/08: tests: needed to specify a correct EBICS host ID., gnunet, 2023/02/08
- [libeufin] 08/08: testing the implementation of #7521, gnunet, 2023/02/08