[java-plugin-storage-jdbc] branch main updated: Set DefaultQueryTimeout for the hsql datasource tobe 21 seconds

Rod Widdowson rdw at steadingsoftware.com
Tue Oct 3 13:38:01 UTC 2023


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch main
in repository java-plugin-storage-jdbc.

View the commit online:
http://git.shibboleth.net/view/?p=java-plugin-storage-jdbc.git;a=commit;h=affcce7da96591fc6394af03d90bdffcfadabe66

The following commit(s) were added to refs/heads/main by this push:
     new affcce7  Set DefaultQueryTimeout for the hsql datasource tobe 21 seconds
affcce7 is described below

commit affcce7da96591fc6394af03d90bdffcfadabe66
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Tue Oct 3 14:37:51 2023 +0100

    Set DefaultQueryTimeout for the hsql datasource tobe 21 seconds
---
 .../net/shibboleth/plugin/storage/jdbc/impl/JDBCStorageServiceTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/jdbc-storage-impl/src/test/java/net/shibboleth/plugin/storage/jdbc/impl/JDBCStorageServiceTest.java b/jdbc-storage-impl/src/test/java/net/shibboleth/plugin/storage/jdbc/impl/JDBCStorageServiceTest.java
index fba7dd1..7a1af7b 100644
--- a/jdbc-storage-impl/src/test/java/net/shibboleth/plugin/storage/jdbc/impl/JDBCStorageServiceTest.java
+++ b/jdbc-storage-impl/src/test/java/net/shibboleth/plugin/storage/jdbc/impl/JDBCStorageServiceTest.java
@@ -92,7 +92,7 @@ public class JDBCStorageServiceTest extends StorageServiceTest {
     private void setupHSSQLDB() throws ClassNotFoundException, SQLException {
         dataSource.setUrl("jdbc:hsqldb:mem:JPAStorageService");
         dataSource.setUsername("sa");
-        dataSource.setDefaultQueryTimeout(3 * dataSource.getDefaultQueryTimeout());
+        dataSource.setDefaultQueryTimeout(21);
         dataSource.setPassword("");
         try (final Connection dbConn = dataSource.getConnection()) {
             final Statement statement = dbConn.createStatement();

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list