You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2022/04/28 08:45:14 UTC

[camel-spring-boot] branch main updated: Fix SQL flaky test (#541)

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git


The following commit(s) were added to refs/heads/main by this push:
     new 3438944eedc Fix SQL flaky test (#541)
3438944eedc is described below

commit 3438944eedcc965fccbd4ce43906cee5a36df6d6
Author: Federico Mariani <34...@users.noreply.github.com>
AuthorDate: Thu Apr 28 10:45:10 2022 +0200

    Fix SQL flaky test (#541)
---
 components-starter/camel-sql-starter/pom.xml                         | 5 +++++
 .../src/test/java/org/apache/camel/component/sql/BaseSql.java        | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/components-starter/camel-sql-starter/pom.xml b/components-starter/camel-sql-starter/pom.xml
index c7e3ae036ad..41875f3c7a3 100644
--- a/components-starter/camel-sql-starter/pom.xml
+++ b/components-starter/camel-sql-starter/pom.xml
@@ -50,6 +50,11 @@
       <artifactId>derby</artifactId>
       <scope>test</scope>
     </dependency>
+    <dependency>
+      <groupId>com.h2database</groupId>
+      <artifactId>h2</artifactId>
+      <scope>test</scope>
+    </dependency>
     <dependency>
       <groupId>org.hsqldb</groupId>
       <artifactId>hsqldb</artifactId>
diff --git a/components-starter/camel-sql-starter/src/test/java/org/apache/camel/component/sql/BaseSql.java b/components-starter/camel-sql-starter/src/test/java/org/apache/camel/component/sql/BaseSql.java
index eb1d16d50d3..5d526f0ac7b 100644
--- a/components-starter/camel-sql-starter/src/test/java/org/apache/camel/component/sql/BaseSql.java
+++ b/components-starter/camel-sql-starter/src/test/java/org/apache/camel/component/sql/BaseSql.java
@@ -46,7 +46,7 @@ public class BaseSql {
     }
 
     protected static EmbeddedDatabase initDb(String script) {
-        return initDb(EmbeddedDatabaseType.DERBY, script);
+        return initDb(EmbeddedDatabaseType.H2, script);
     }
 
     protected static EmbeddedDatabase initDb(EmbeddedDatabaseType type, String script) {